For a Rails project, if you are given a DB dump, what's gong to be the way?
- I run all the migrations, and then I load the DB dump.
- I load just the DB dump.
In point 2, if I load just the DB dump, and I, then add a new migration to my project. So then, running rake db:migrate
will only run the new migration, since the old migrations have already been run by loading DB dump.
Or, loading a DB dump will have nothing to do with running migrations. A migration will only be marked up if you have run rake db:migrate
?
Note: The DB dumb isn't Rails schema, it has been generated by MySQL, and it contains all the data a fellow developer has.