Skip to content
Browse files

Merge pull request #2621 from icco/master

Issue with schema dump
  • Loading branch information...
2 parents b36f240 + a58fcd9 commit 41dfc46717754c48c6957b6495c35b812109a8b7 @tenderlove tenderlove committed Mar 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/schema_dumper.rb
View
2 activerecord/lib/active_record/schema_dumper.rb
@@ -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

0 comments on commit 41dfc46

Please sign in to comment.
Something went wrong with that request. Please try again.