I want to enable production enviornment for my appication.The content of
database.yml file is as
# SQLite version 3.x
# gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
adapter: mysql
database: amritpal
username: root
password: 12345
pool: 5
timeout: 5000
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: sqlite3
database: db/test.sqlite3
pool: 5
timeout: 5000
production:
adapter: mysql
database: production
username: root
password: 12345
pool: 5
timeout: 5000
I ran "RAILS_ENV=production rake db:create ",it
created a production database.Here is assume that the production enviornment
is enable(But i was wrong).Then i created a simple scaffold as.
script/generate scaffold person firstname:string
lastname:string;
rake db:migrate(it created a table named"people"
in amritpal database that is used in development envionrment.But in
production enviornment ,the database production hasn't any talbe)
How to enable it?
Thanks
--
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.