diff options
author | Josh Susser <josh@hasmanythrough.com> | 2012-12-05 14:33:49 -0800 |
---|---|---|
committer | Josh Susser <josh@hasmanythrough.com> | 2012-12-05 14:33:49 -0800 |
commit | cb790703a6e1c8aec08d13e1dd28a76030b41c90 (patch) | |
tree | 39051f953ab7713d4c4572a6ca14a8c5f4e99d97 /activerecord/lib/active_record | |
parent | 0c692f4d121792117b6a71e5ed590a31c3b9d12e (diff) | |
download | rails-cb790703a6e1c8aec08d13e1dd28a76030b41c90.tar.gz rails-cb790703a6e1c8aec08d13e1dd28a76030b41c90.tar.bz2 rails-cb790703a6e1c8aec08d13e1dd28a76030b41c90.zip |
dump schema.rb without :version option
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/schema_dumper.rb | 6 |
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 |