-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
schema.rb not being generated correctly after migration #81
Comments
@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? |
@patrick-gleeson I've had this issue in both Rails My work-around was to use
See http://edgeguides.rubyonrails.org/active_record_migrations.html#schema-dumping-and-you |
Ah nice one! Yep, that's working for us too as a workaround. |
@patrick-gleeson - I've added you as a contributor! Feel free to make commits directly! |
My migrations are not creating the correct entires in my schema.rb file.
See my example migration:
And this generates an entry in my schema.rb, without my uuid primary key
I then need to manually change my shema.rb to the following in order for it to work correctly:
Is there something existing I can enter into my migrations to get this to work?
The text was updated successfully, but these errors were encountered: