About Cacher
Web App
Download
Sign In
Sign Up
menu
Cacher is the code snippet organizer for pro developers
We empower you and your team to get more done, faster
Learn More
Kievbuy
8/29/2018 - 8:24 AM
share
Share
add_circle_outline
Save
RAKE DB Migrations commands
ss
content_copy
file_download
Rendered
Source
db:create
creates the database for the current env
db:create:all
creates the databases for all envs
db:migrate
runs migrations for the current env that have not run yet
db:migrate:up
runs one specific migration
db:migrate:down
rolls back one specific migration
db:migrate:status
shows current migration status
db:rollback
rolls back the last migration
db:forward
advances the current schema version to the next one
db:seed
(only) runs the db/seed.rb file
db:schema:load
loads the schema into the current env's database
db:schema:dump
dumps the current env's schema (and seems to create the db as well)
db:setup
runs db:schema:load, db:seed
db:migrate:redo
runs (db:migrate:down db:migrate:up) or (db:rollback db:migrate) depending on the specified migration
Run specific migration
rake db:migrate:up VERSION=20090408054532
rake db:migrate:down VERSION=20090408054532
clear