diff options
-rw-r--r-- | activerecord/lib/active_record/schema_dumper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |