diff options
Diffstat (limited to 'railties/lib/tasks/databases.rake')
-rw-r--r-- | railties/lib/tasks/databases.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/tasks/databases.rake b/railties/lib/tasks/databases.rake index f9fa722579..7f7d9d02a2 100644 --- a/railties/lib/tasks/databases.rake +++ b/railties/lib/tasks/databases.rake @@ -16,7 +16,7 @@ end desc "Create a db/schema.rb file that can be portably used against any DB supported by AR." task :db_schema_dump => :environment do require 'active_record/schema_dumper' - File.open("db/schema.rb", "w") do |file| + File.open(ENV['SCHEMA'] || "db/schema.rb", "w") do |file| ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, file) end end |