aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-12-05 15:05:40 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-12-05 15:05:40 -0800
commit036d3e1c2b65c4b8cbd23de2e20ad67b9b756182 (patch)
tree39051f953ab7713d4c4572a6ca14a8c5f4e99d97 /activerecord
parent0c692f4d121792117b6a71e5ed590a31c3b9d12e (diff)
parentcb790703a6e1c8aec08d13e1dd28a76030b41c90 (diff)
downloadrails-036d3e1c2b65c4b8cbd23de2e20ad67b9b756182.tar.gz
rails-036d3e1c2b65c4b8cbd23de2e20ad67b9b756182.tar.bz2
rails-036d3e1c2b65c4b8cbd23de2e20ad67b9b756182.zip
Merge pull request #8431 from joshsusser/schemadump
dump schema.rb without :version option
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/schema_dumper.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/schema_dumper.rb b/activerecord/lib/active_record/schema_dumper.rb
index 73c0f5b9eb..194a77ca16 100644
--- a/activerecord/lib/active_record/schema_dumper.rb
+++ b/activerecord/lib/active_record/schema_dumper.rb
@@ -39,8 +39,6 @@ module ActiveRecord
end
def header(stream)
- define_params = @version ? "version: #{@version}" : ""
-
if stream.respond_to?(:external_encoding) && stream.external_encoding
stream.puts "# encoding: #{stream.external_encoding.name}"
end
@@ -58,7 +56,7 @@ module ActiveRecord
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(#{define_params}) do
+ActiveRecord::Schema.define do
HEADER_RUBY
stream.puts header_text
@@ -75,7 +73,7 @@ HEADER_RUBY
all_migrations.each do |migration|
stream.puts(migration.schema_line(" "))
end
- stream.puts(" end")
+ stream.puts(" end\n\n")
end
end