SVN URL: https://tfw.devguard.com/svn/os/plugins/tfwtasks

Common rake tasks used in Rails project.

  • db:reset: e.g.

    rake db:reset RAILS_ENV=production

  • db:bootstrap: looks in db/bootstrap/to/ for yml bootstrap files, defaulting the to var to development

    e.g. rake db:bootstrap
    bootstraps everything in db/bootstrap/development but

    rake db:bootstrap to=production
    reads from db/bootstrap/production instead.

  • db:refresh: e.g.

    rake db:refresh - runs both db:reset and db:bootstrap.

  • Leave a Reply