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
Post a Comment