2014-10-08 77 views

回答

0

編輯database.yml爲: -

production: 
    adapter: mysql2 
    encoding: utf8 
    reconnect: false 
    database: database_name 
    pool: 5 
    username: username 
    password: password 
    host: abcdef.amazonaws.com 

運行遷移爲: -

bundle exec rake RAILS_ENV=production db:migrate 
+0

沙姆斯,感謝您的回答。你所建議的配置正是我在我的database.yml中所擁有的,我也嘗試過多次「bundle exec rake RAILS_ENV = staging db:migrate」。對此有何想法? – Yeaz 2014-10-08 23:59:20