Skip to content

Instantly share code, notes, and snippets.

@naltun
Created November 10, 2017 01:00
Show Gist options
  • Save naltun/3b0fce417e80b4cb063eb61b96ba8e49 to your computer and use it in GitHub Desktop.
Save naltun/3b0fce417e80b4cb063eb61b96ba8e49 to your computer and use it in GitHub Desktop.
** Using session_store: ActionDispatch::Session::MemCacheStore
rake aborted!
ActiveRecord::NoEnvironmentInSchemaError:
Environment data not found in the schema. To resolve this issue, run:
bin/rails db:environment:set RAILS_ENV=development
/home/naltun/.rvm/gems/ruby-2.4.1/gems/activerecord-5.0.6/lib/active_record/migration.rb:1277:in `last_stored_environment'
/home/naltun/.rvm/gems/ruby-2.4.1/gems/activerecord-5.0.6/lib/active_record/tasks/database_tasks.rb:48:in `check_protected_environments!'
/home/naltun/.rvm/gems/ruby-2.4.1/gems/activerecord-5.0.6/lib/active_record/railties/databases.rake:11:in `block (2 levels) in <top (required)>'
/home/naltun/manageiq/lib/tasks/evm_dba.rake:91:in `block (3 levels) in <top (required)>'
/home/naltun/.rvm/gems/ruby-2.4.1/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
/home/naltun/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'
/home/naltun/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => db:drop => db:check_protected_environments
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment