Skip to content

Commit

Permalink
Merge pull request #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
2 parents b36f240 + a58fcd9 commit 41dfc46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/schema_dumper.rb
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 41dfc46

Please sign in to comment.