Create production tables? use "rake db:migrate"?

Hi,

What is the normal mechanism for creating the tables in the (a) test and
(b) production databases.

For example the following didn’t work for creating the production
tables:
a) change environment.rb to include “ENV[‘RAILS_ENV’] ||= ‘production’”
b) run “rake db:migrate”
However this seemed to still work against DEV not PRODUCTION?

Maybe I’m looking in the wrong place but the doco doesn’t seem to
cover/clarify this at
"http://api.rubyonrails.org/classes/ActiveRecord/Migration.html

Tks
Greg

On 7/25/06, Greg H. [email protected] wrote:

However this seemed to still work against DEV not PRODUCTION?


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

use the rake comman

rake db:migrate RAILS_ENV=“production”

Tks Daniel

Do you know where I could have found this in the doco? (i.e. try to get
myself more self-sufficient)

Tks again

On 7/25/06, Greg H. [email protected] wrote:


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

I have the mailing list in gmail and I search that. (I’ve got it going
back
a while :wink: ) I don’t know where this particular item is in the docs tho

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs