Skip to content

Commit

Permalink
Apply [3136] to stable. Make the db_schema_dump task honor the SCHEMA…
Browse files Browse the repository at this point in the history
… environment variable if present the way db_schema_import does. Closes #2931.

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/stable@3138 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
Marcel Molina committed Nov 21, 2005
1 parent 743fb60 commit 4a9847f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions railties/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
*SVN*

* Make the db_schema_dump task honor the SCHEMA environment variable if present the way db_schema_import does. #2931. [Blair Zajac]

* Make help for the console command more explicit about how to specify the desired environment in which to run the console. #2911. [anonymous]

* Introducing the session_migration generator. Creates an add_session_table migration. Allows generator to specify migrations directory. #2958, #2960 [Rick Olson]
Expand Down
2 changes: 1 addition & 1 deletion railties/lib/tasks/databases.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a9847f

Please sign in to comment.