-
Notifications
You must be signed in to change notification settings - Fork 0
RailsDB
XTao edited this page Nov 15, 2013
·
2 revisions
-
db:createcreates the database for the current env -
db:create:allcreates the databases for all envs -
db:dropdrops the database for the current env -
db:drop:alldrops the databases for all envs -
db:migrateruns migrations for the current env that have not run yet -
db:migrate:upruns one specific migration -
db:migrate:downrolls back one specific migration -
db:migrate:statusshows current migration status -
db:migrate:rollbackrolls back the last migration -
db:forwardadvances the current schema version to the next one -
db:seed(only) runs the db/seed.rb file -
db:schema:loadloads the schema into the current env's database -
db:schema:dumpdumps the current env's schema (and seems to create the db as well)