Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
RuntimeError: Cannot load `Rails.application.database_configuration`:
Could not load database configuration. No such file - ["config/database.yml"]
/Users/jrochkind/.gem/ruby/2.4.2/gems/railties-5.2.0/lib/rails/application/configuration.rb:185:in `database_configuration'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activerecord-5.2.0/lib/active_record/railtie.rb:133:in `block (2 levels) in <class:Railtie>'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/lazy_load_hooks.rb:71:in `instance_eval'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/lazy_load_hooks.rb:51:in `each'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activerecord-5.2.0/lib/active_record/base.rb:328:in `<module:ActiveRecord>'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activerecord-5.2.0/lib/active_record/base.rb:27:in `<top (required)>'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `block in require'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require'
/Users/jrochkind/.gem/ruby/2.4.2/gems/combustion-0.9.0/lib/combustion/database/reset.rb:22:in `initialize'
/Users/jrochkind/.gem/ruby/2.4.2/gems/combustion-0.9.0/lib/combustion/database/reset.rb:18:in `new'
/Users/jrochkind/.gem/ruby/2.4.2/gems/combustion-0.9.0/lib/combustion/database/reset.rb:18:in `call'
/Users/jrochkind/.gem/ruby/2.4.2/gems/combustion-0.9.0/lib/combustion/database.rb:18:in `setup'
/Users/jrochkind/.gem/ruby/2.4.2/gems/combustion-0.9.0/lib/combustion.rb:41:in `block in include_database'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:426:in `instance_exec'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:426:in `block in make_lambda'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:606:in `block (2 levels) in default_terminator'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:605:in `catch'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:605:in `block in default_terminator'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:199:in `block in halting'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:513:in `block in invoke_before'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:513:in `each'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:513:in `invoke_before'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/callbacks.rb:131:in `run_callbacks'
/Users/jrochkind/.gem/ruby/2.4.2/gems/activesupport-5.2.0/lib/active_support/reloader.rb:89:in `prepare!'
/Users/jrochkind/.gem/ruby/2.4.2/gems/railties-5.2.0/lib/rails/application/finisher.rb:63:in `block in <module:Finisher>'
/Users/jrochkind/.gem/ruby/2.4.2/gems/railties-5.2.0/lib/rails/initializable.rb:32:in `instance_exec'
/Users/jrochkind/.gem/ruby/2.4.2/gems/railties-5.2.0/lib/rails/initializable.rb:32:in `run'
/Users/jrochkind/.gem/ruby/2.4.2/gems/railties-5.2.0/lib/rails/initializable.rb:61:in `block in run_initializers'
/opt/rubies/ruby-2.4.2/lib/ruby/2.4.0/tsort.rb:228:in `block in tsort_each'
/opt/rubies/ruby-2.4.2/lib/ruby/2.4.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
/opt/rubies/ruby-2.4.2/lib/ruby/2.4.0/tsort.rb:431:in `each_strongly_connected_component_from'
/opt/rubies/ruby-2.4.2/lib/ruby/2.4.0/tsort.rb:349:in `block in each_strongly_connected_component'
/opt/rubies/ruby-2.4.2/lib/ruby/2.4.0/tsort.rb:347:in `each'
/opt/rubies/ruby-2.4.2/lib/ruby/2.4.0/tsort.rb:347:in `call'
/opt/rubies/ruby-2.4.2/lib/ruby/2.4.0/tsort.rb:347:in `each_strongly_connected_component'
/opt/rubies/ruby-2.4.2/lib/ruby/2.4.0/tsort.rb:226:in `tsort_each'
/opt/rubies/ruby-2.4.2/lib/ruby/2.4.0/tsort.rb:205:in `tsort_each'
/Users/jrochkind/.gem/ruby/2.4.2/gems/railties-5.2.0/lib/rails/initializable.rb:60:in `run_initializers'
/Users/jrochkind/.gem/ruby/2.4.2/gems/railties-5.2.0/lib/rails/application.rb:361:in `initialize!'
/Users/jrochkind/.gem/ruby/2.4.2/gems/railties-5.2.0/lib/rails/railtie.rb:190:in `public_send'
/Users/jrochkind/.gem/ruby/2.4.2/gems/railties-5.2.0/lib/rails/railtie.rb:190:in `method_missing'
/Users/jrochkind/.gem/ruby/2.4.2/gems/combustion-0.9.0/lib/combustion.rb:33:in `initialize!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.