Permalink
Browse files

Merge pull request #2621 from icco/master

Issue with schema dump
  • Loading branch information...
1 parent 4590e99 commit e95f8e8a2f42c23024295491139dcd867668ebaf @tenderlove tenderlove committed Mar 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 e95f8e8

Please sign in to comment.