aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-03-26 17:24:48 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2012-03-26 17:24:48 -0700
commit41dfc46717754c48c6957b6495c35b812109a8b7 (patch)
tree08ac491fdfdb4615e9406c291240f952e561dadb /activerecord/lib/active_record
parentb36f2408002f32c85bc31c459da43be4f4774ac4 (diff)
parenta58fcd94a077b22204f08385e906bebc31dcb948 (diff)
downloadrails-41dfc46717754c48c6957b6495c35b812109a8b7.tar.gz
rails-41dfc46717754c48c6957b6495c35b812109a8b7.tar.bz2
rails-41dfc46717754c48c6957b6495c35b812109a8b7.zip
Merge pull request #2621 from icco/master
Issue with schema dump
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/schema_dumper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/schema_dumper.rb b/activerecord/lib/active_record/schema_dumper.rb
index dcbd165e58..95fd33c1d1 100644
--- a/activerecord/lib/active_record/schema_dumper.rb
+++ b/activerecord/lib/active_record/schema_dumper.rb
@@ -40,7 +40,7 @@ module ActiveRecord
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