migration review

  • rake db:migrate VERSION=20080906120000 ( if it is run already,  won’t be run again)
  • rake db:migrate:up VERSION=20080906120000
  • rake db:migrate:redo STEP=3
  • rake db:migrate:redo VERSION=20080906120000
  • rake db:rollback This will run the down method from the latest migration ( check out scheme_migrations to see which one is the latest; if many people are working at the same time, you will be surprised about the result. If the latest migration file is not on your desktop, it won’t run anything.)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s