From 7d04a983d1bb0a766087ff371e46fe142f90f25b Mon Sep 17 00:00:00 2001 From: Jason Karns Date: Fri, 27 Feb 2026 15:27:21 -0500 Subject: [PATCH] Don't disable Rails' environment protections If the user needs to run squasher in a protected environment for some reason, they should be required to set DISABLE_DATABASE_ENVIRONMENT_CHECK _themselves_. --- lib/squasher.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/squasher.rb b/lib/squasher.rb index cf6db4c..7b5baee 100644 --- a/lib/squasher.rb +++ b/lib/squasher.rb @@ -28,7 +28,7 @@ def clean def rake(command, description = nil) tell(description) if description config.in_app_root do - env = { 'RAILS_ENV' => 'development', 'DISABLE_DATABASE_ENVIRONMENT_CHECK' => '1' } + env = { 'RAILS_ENV' => 'development' } system(env, "bundle exec rake #{ command }") end end