mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Check for protected environments before trying to load structure.sql file
- Check for protected environments while running `db:structure:load` similar to how `db:schema:load` behaves. - Followup of https://github.com/rails/rails/pull/24399.
This commit is contained in:
parent
87c2c070c4
commit
028feab852
1 changed files with 1 additions and 1 deletions
|
@ -302,7 +302,7 @@ db_namespace = namespace :db do
|
|||
end
|
||||
|
||||
desc "Recreates the databases from the structure.sql file"
|
||||
task :load => [:environment, :load_config] do
|
||||
task :load => [:environment, :load_config, :check_protected_environments] do
|
||||
ActiveRecord::Tasks::DatabaseTasks.load_schema_current(:sql, ENV['SCHEMA'])
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue