From 68ab9087166bde9e6083f660c8735947130b0866 Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Sun, 30 Apr 2006 02:40:06 +0000 Subject: [PATCH] Ensure that StringIO is always available for the Schema dumper. [Marcel Molina Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4315 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/CHANGELOG | 2 ++ activerecord/lib/active_record/schema_dumper.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index bd595c177b..b7c805e2a2 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Ensure that StringIO is always available for the Schema dumper. [Marcel Molina Jr.] + * Allow AR::Base#to_xml to include methods too. Closes #4921. [johan@textdrive.com] * Replace superfluous name_to_class_name variant with camelize. [Marcel Molina Jr.] diff --git a/activerecord/lib/active_record/schema_dumper.rb b/activerecord/lib/active_record/schema_dumper.rb index 718669a1b7..6c896f7bed 100644 --- a/activerecord/lib/active_record/schema_dumper.rb +++ b/activerecord/lib/active_record/schema_dumper.rb @@ -1,3 +1,5 @@ +require 'stringio' + module ActiveRecord # This class is used to dump the database schema for some connection to some # output format (i.e., ActiveRecord::Schema).