ninajansen.dk

ninajansen.dk header image 1

Rails tips #1

maj 2nd, 2008 · Comments

These might be completely obvious to everyone, but I found them useful:

  • If you want to migrate a specific database, you can do it by setting RAILS_ENV on the command line. Like this:
    rake db:migrate RAILS_ENV=production
  • If you want to see all the rake tasks in your application with a description of what they do, execute:
    rake -D

Popularity: 63% [?]

Tags: Ruby on Rails · tips