Alex Rivera | Logout

How can I tell what changes 'rake db:migrate' will apply before applying them?

Asked 2011-09-08T10:29:26.217
33

The command rake db:migrate will apply all relevant new migrations to a database and will list in the output the migrations that were applied.

I'd like to know in advance what migrations will be applied so as to note down a list of the changes that are expected in a production environment.

Is there an option I can use in conjunction to rake db:migrate that will show me what changes will be applied without actually applying them?

Edit
Report

1 Answer

66

Does rake db:migrate:status (rails 3+ only) fit the bill?

answered 2011-09-08T10:34:55.863

Your Answer