You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in addition to remove the migration file, what else should I do ?
And once I created a migration file , should I run rake db:migrate command ?
thanks
Because I created a migration file 002, and the entity name is identical to the previous migration file's entity, then I delete the 002 migration file , and got the following exception, and I don't know what should I do.
Currently, rollbacks aren't supported in CDQ, so you'll have to delete the DB and start over again (easiest way is to just delete the app from the simulator). A cdq.reset! might do the trick too, but I'm not sure about that.
If you've already pushed a version with the incorrect field to the app store, you'll have to make your next migration still include it and simply add a new column to the table.
I assume you are talking about your local environment? In that case, simply resetting your simulator or deleting the app from your phone is probably what you want. cdq.reset! should do the trick too.
If you mean that a migration got into production, that's serious. You are better off making a new migration to fix the damage.
If I created a wrong migration,
How could I rollback to the original state,
in addition to remove
the migration file
, what else should I do ?And once I created a migration file , should I run
rake db:migrate
command ?thanks
Because I created a migration file
002
, and the entity name is identical to the previous migration file's entity, then I delete the002
migration file , and got the following exception, and I don't know what should I do.The text was updated successfully, but these errors were encountered: