rubyforgood / playtime

Supporting children and families experiencing homelessness in Washington, DC. Live app - https://wishlist.playtimeproject.org Organization Website:
http://www.playtimeproject.org/
MIT License
89 stars 50 forks source link

ActiveRecord::ProtectedEnvironmentError: You are attempting to run a destructive action against your 'production' database. If you are sure you want to continue, run the same command with the environment variable: DISABLE_DATABASE_ENVIRONMENT_CHECK=1 #165

Closed leesharma closed 7 years ago

leesharma commented 7 years ago

View details in Rollbar: https://rollbar.com/project-playtime/project-playtime/items/13/


ActiveRecord::ProtectedEnvironmentError: You are attempting to run a destructive action against your 'production' database.
If you are sure you want to continue, run the same command with the environment variable:
DISABLE_DATABASE_ENVIRONMENT_CHECK=1
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.1/lib/active_record/tasks/database_tasks.rb", line 59, in check_protected_environments!
  File "/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.1/lib/active_record/railties/databases.rake", line 11, in block (2 levels) in <top (required)>
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task.rb", line 250, in block in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task.rb", line 250, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task.rb", line 250, in execute
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task.rb", line 194, in block in invoke_with_call_chain
  File "/app/vendor/ruby-2.4.1/lib/ruby/2.4.0/monitor.rb", line 214, in mon_synchronize
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task.rb", line 187, in invoke_with_call_chain
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task.rb", line 216, in block in invoke_prerequisites
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task.rb", line 214, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task.rb", line 214, in invoke_prerequisites
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task.rb", line 193, in block in invoke_with_call_chain
  File "/app/vendor/ruby-2.4.1/lib/ruby/2.4.0/monitor.rb", line 214, in mon_synchronize
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task.rb", line 187, in invoke_with_call_chain
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task.rb", line 216, in block in invoke_prerequisites
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task.rb", line 214, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task.rb", line 214, in invoke_prerequisites
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task.rb", line 193, in block in invoke_with_call_chain
  File "/app/vendor/ruby-2.4.1/lib/ruby/2.4.0/monitor.rb", line 214, in mon_synchronize
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task.rb", line 187, in invoke_with_call_chain
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task.rb", line 180, in invoke
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/application.rb", line 152, in invoke_task
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/application.rb", line 108, in block (2 levels) in top_level
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/application.rb", line 108, in each
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/application.rb", line 108, in block in top_level
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/application.rb", line 117, in run_with_threads
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/application.rb", line 102, in top_level
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/application.rb", line 80, in block in run
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/application.rb", line 178, in standard_exception_handling
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/application.rb", line 77, in run
  File "/app/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/exe/rake", line 27, in <top (required)>
  File "/app/vendor/bundle/ruby/2.4.0/bin/rake", line 22, in load
  File "/app/vendor/bundle/ruby/2.4.0/bin/rake", line 22, in <top (required)>
  File "/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/cli/exec.rb", line 74, in load
  File "/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/cli/exec.rb", line 74, in kernel_load
  File "/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/cli/exec.rb", line 27, in run
  File "/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/cli.rb", line 360, in exec
  File "/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/vendor/thor/lib/thor/command.rb", line 27, in run
  File "/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/vendor/thor/lib/thor/invocation.rb", line 126, in invoke_command
  File "/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/vendor/thor/lib/thor.rb", line 369, in dispatch
  File "/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/cli.rb", line 20, in dispatch
  File "/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/vendor/thor/lib/thor/base.rb", line 444, in start
  File "/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/cli.rb", line 10, in start
  File "/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/exe/bundle", line 30, in block in <top (required)>
  File "/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/friendly_errors.rb", line 121, in with_friendly_errors
  File "/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/exe/bundle", line 22, in <top (required)>
  File "/app/bin/bundle", line 3, in load
  File "/app/bin/bundle", line 3, in <main>
leesharma commented 7 years ago

Sorry–I'm adding some items to staging.