mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #8651 from tjouan/activerecord-structure_dump-ending_nl
Fix missing ending newline in db structure dump:
This commit is contained in:
commit
1202170ad8
1 changed files with 3 additions and 1 deletions
|
@ -300,7 +300,9 @@ db_namespace = namespace :db do
|
||||||
end
|
end
|
||||||
|
|
||||||
if ActiveRecord::Base.connection.supports_migrations?
|
if ActiveRecord::Base.connection.supports_migrations?
|
||||||
File.open(filename, "a") { |f| f << ActiveRecord::Base.connection.dump_schema_information }
|
File.open(filename, "a") do |f|
|
||||||
|
f.puts ActiveRecord::Base.connection.dump_schema_information
|
||||||
|
end
|
||||||
end
|
end
|
||||||
db_namespace['structure:dump'].reenable
|
db_namespace['structure:dump'].reenable
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue