Skip to content

Commit

Permalink
Merge pull request rails#2621 from icco/master
Browse files Browse the repository at this point in the history
Issue with schema dump
  • Loading branch information
tenderlove committed Mar 27, 2012
1 parent 0e916ae commit 3eb5be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/schema_dumper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def initialize(connection)
def header(stream)
define_params = @version ? ":version => #{@version}" : ""

if stream.respond_to?(:external_encoding)
if stream.respond_to?(:external_encoding) && stream.external_encoding
stream.puts "# encoding: #{stream.external_encoding.name}"
end

Expand Down

0 comments on commit 3eb5be6

Please sign in to comment.