mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Update activerecord/lib/active_record/railties/databases.rake
This commit is contained in:
@@ -371,7 +371,7 @@ db_namespace = namespace :db do
|
||||
end
|
||||
|
||||
namespace :structure do
|
||||
desc 'Dump the database structure to db/structure.sql. Specify an alternative file (eg. db/my_strcuture.sql) using DB_STRUCTURE=db/my_strcuture.sql'
|
||||
desc 'Dump the database structure to db/structure.sql. Specify another file with DB_STRUCTURE=db/my_strcuture.sql'
|
||||
task :dump => :environment do
|
||||
abcs = ActiveRecord::Base.configurations
|
||||
filename = ENV['DB_STRUCTURE'] || File.join(Rails.root, "db", "structure.sql")
|
||||
|
||||
Reference in New Issue
Block a user