-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
You don't build the db with db:migrate #69
Comments
While it's true that |
I'm assuming you're referring to my comment about deleting migrations... I was referring to deleting migrations that are old, not recent. And I'll also add that migrations that work fine today will sometimes even fail Anyway, are you agreeing that the instructions should be changed, or do you Khurram Virani On Sat, Nov 23, 2013 at 9:04 PM, Mohammed Ameen [email protected]:
|
I'd agree with changing the instructions as recreating a db overtime solely through migrations would not be feasible (essentially if later migrations affect older ones or any irreversible migrations are performed) Also if you strongly feel that the instructions are to be changed edit the readme and send in a pull request with the updated instructions for recreating the db. |
Great, will do. Thanks Khurram Virani On Sat, Nov 23, 2013 at 10:10 PM, Mohammed Ameen
|
The README asks you to setup the db using the
rake db:migrate
command. This is incorrect. Migrations are not how new developers get their database setup. The schema.rb is to be used for this. In fact, you should be able to delete old migration files from the project file without consequence to new contributors.The
rake db:schema:load
(or better yet therake db:setup
) is what should be used to create the database based on the schema defined in the schema.rb file, instead of using migration files.http://stackoverflow.com/questions/10122772/remove-past-migration-in-rails/10123000#10123000
The text was updated successfully, but these errors were encountered: