Marcus Chia

Joined

10 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

Hello,

Please help urgent, I'm currently using mysql2 as the adapter. When i try run "rails generate scaffold User email", I get the error -

/home/deploy/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application/configuration.rb:110:in `database_configuration': Cannot load `Rails.application.database_configuration`: (RuntimeError)
Could not load database configuration. No such file - ["config/database.yml"]

I have already configured my database.yml as

production:
adapter: mysql2
database: deploy_test
username: deploy
password: password