Thank you Greg and Philip > $ rake -T
rake -T lists the available commands. It doesn't give you any syntax for each command. Specifically, it doesn't list the available parameters and switches. For example, it doesn't specify that you can use the keyword 'environment' with db:migrate. > > http://guides.rubyonrails.org/command_line.html#rake-is-ruby-make > Again another list of the rake tasks - but not the avaiable options for each task. > vendor/rails/railties/lib/tasks/*.rake > That's has led me down a useful path. I've found the location of the standard Rails rake commands. On a Windows system running Rails 2.3.4 they are at: <ruby root>/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/tasks Specifically the code controlling db:migrate is in database.rake (I'd been searching for a file with 'migrate' or 'migration' in the file name). I should be able to work through this source code and work out the command syntax. > RAILS_ENV=production rake db:migrate > > Not a whole heck of a lot shorter though. I might see if I can modify mine to: rake db:migrate production Thank you for your replies -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

