Rake commands rake, memos
Meta commands
rake --help
rake -T db: # list all db:* commands
rake -d db:setup # describe the command
db commands
rake db:fixtures:load
rake db:fixtures:load FIXTURES=cities,users
rake db:drop
rake db:migrate
rake db:seed
rake db:setup # create + migrate + seed
rake db:reset # drop + setup
rake db:rollback # undo the last migration
rake db:rollback STEP=3 # the last 3
rake db:migrate:redo STEP=3
assets commands
rake assets:precompile
rake assets:clean ## deleete /public/assets
routes commands
rake routes
Tweet
comments powered by Disqus