Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #8431 from joshsusser/schemadump

dump schema.rb without :version option
  • Loading branch information...
commit 036d3e1c2b65c4b8cbd23de2e20ad67b9b756182 2 parents 0c692f4 + cb79070
@tenderlove tenderlove authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 activerecord/lib/active_record/schema_dumper.rb
View
6 activerecord/lib/active_record/schema_dumper.rb
@@ -39,8 +39,6 @@ def initialize(connection)
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 @@ def header(stream)
#
# 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 @@ def migrations(stream)
all_migrations.each do |migration|
stream.puts(migration.schema_line(" "))
end
- stream.puts(" end")
+ stream.puts(" end\n\n")
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.