From cb790703a6e1c8aec08d13e1dd28a76030b41c90 Mon Sep 17 00:00:00 2001 From: Josh Susser Date: Wed, 5 Dec 2012 14:33:49 -0800 Subject: dump schema.rb without :version option --- activerecord/lib/active_record/schema_dumper.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'activerecord/lib') 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 -- cgit v1.2.3