Permalink
Browse files

Merge pull request #2621 from icco/master

Issue with schema dump
  • Loading branch information...
1 parent 0e916ae commit 3eb5be67b14e347951eea2dd13cd6f4a8aaaa38c @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 3eb5be6

Please sign in to comment.