Run migrations from rails console -


Is there any way to run the rake command for a deb: Migrate and DB: rollback on the console?

It is worthless to wait for the rail to load for the environment!

This will allow you to migrate the entire rail environment without reloading:

  ActiveRecord :: Migrator.migrate "db / migrate"   

and rollback:

  Number of rollbacks, optional, number of migration for default Is 1 active Record: Migrator.rollback "db / migrate", 3    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -