Greg Hauptmann
2006-Jul-25 05:06 UTC
[Rails] 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 -- Posted via http://www.ruby-forum.com/.
On 7/25/06, Greg Hauptmann <gregsfm@tpg.com.au> wrote:> > 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 > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >use the rake comman rake db:migrate RAILS_ENV="production" -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060725/1d3f00f1/attachment.html
Greg Hauptmann
2006-Jul-25 05:54 UTC
[Rails] Re: create production tables? use "rake db:migrate"?
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 -- Posted via http://www.ruby-forum.com/.
Daniel N
2006-Jul-25 06:06 UTC
[Rails] Re: create production tables? use "rake db:migrate"?
On 7/25/06, Greg Hauptmann <gregsfm@tpg.com.au> wrote:> > 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 > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/railsI have the mailing list in gmail and I search that. (I''ve got it going back a while ;) ) I don''t know where this particular item is in the docs tho -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060725/39663369/attachment.html