Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: rails/rails
...
head fork: rails/rails
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
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

No commit comments for this range

Something went wrong with that request. Please try again.