Comments (4)
@patrick-gleeson I've had this issue in both Rails 4.2.5
and 4.2.6
. It does makes sense that this may be a compatibility issue with newer versions of ActiveRecord since this gem seems to have fallen out of maintenance.
My work-around was to use structure.sql
instead of schema.rb
by adding the following line to config/application.rb
:
config.active_record.schema_format = :sql
See http://edgeguides.rubyonrails.org/active_record_migrations.html#schema-dumping-and-you
from activeuuid.
@cameronbourgeois what version of Rails are you using?
We just upgraded from Rails 4.0 to Rails 4.2, and now every time we run a migration, in the schema file every table that had a uuid 'id' column loses its id column entirely, even if the migration itself is for something completely unrelated.
If our problem is the same thing as yours, that suggests the problem isn't with your migration syntax, it's with how this gem interacts with ActiveRecord in Rails 4.2.
@jashmenn, this repo hasn't had any commits in 10 months - is it still being maintained by anyone and is there a reasonably chance that anyone will be able to look into this?
from activeuuid.
Ah nice one! Yep, that's working for us too as a workaround.
from activeuuid.
@patrick-gleeson - I've added you as a contributor! Feel free to make commits directly!
from activeuuid.
Related Issues (20)
- How to add uuid primary key column to the existing table in migration script
- mysql2 adapter not loaded when railtie runs HOT 3
- Problems with the search by id
- Primary key column_hash is binary != :uuid HOT 2
- Default primary key value is incompatible with accepts_nested_attributes_for HOT 1
- has_one children being updated with parent record HOT 1
- Finding non-existent record in assocation causes Cannot visit UUIDTools::UUID with Rails 3
- to_yaml support & yaml_db clean export
- Still Maintained? HOT 1
- Backwards compatibility with integer IDs? HOT 8
- 0.6.1 patch release? HOT 2
- PostgreSQL: TypeError: can't cast UUIDTools::UUID to uuid HOT 5
- you can't redefine the primary key column 'id'. HOT 3
- Rails 5 compatibility HOT 8
- SQL (MySQL) errors in complex arel queries HOT 1
- No Changelog
- Rails 5 issues HOT 5
- .find not accepting string containing UUID HOT 1
- .includes association with uuid not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from activeuuid.