From d364164763cd4e8868e47f4093ec8e329a33dbc4 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Wed, 5 Oct 2005 13:37:00 +0000 Subject: Schema dumper should emit ":default => false" if the default for a column is false git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2464 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/schema_dumper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/schema_dumper.rb b/activerecord/lib/active_record/schema_dumper.rb index 0f51de58af..30d6f6927b 100644 --- a/activerecord/lib/active_record/schema_dumper.rb +++ b/activerecord/lib/active_record/schema_dumper.rb @@ -59,7 +59,7 @@ HEADER next if column.name == "id" stream.print " t.column #{column.name.inspect}, #{column.type.inspect}" stream.print ", :limit => #{column.limit.inspect}" if column.limit != @types[column.type][:limit] - stream.print ", :default => #{column.default.inspect}" if column.default + stream.print ", :default => #{column.default.inspect}" if !column.default.nil? stream.print ", :null => false" if !column.null stream.puts end @@ -80,4 +80,4 @@ HEADER stream.puts unless indexes.empty? end end -end \ No newline at end of file +end -- cgit v1.2.3