diff options
author | Jamis Buck <jamis@37signals.com> | 2005-10-05 13:37:00 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-10-05 13:37:00 +0000 |
commit | d364164763cd4e8868e47f4093ec8e329a33dbc4 (patch) | |
tree | ade2a7e216cff71b0c64f580f7b18e7f9fe8c1f6 | |
parent | f510b09c28c98faa2dc18a12430a1cffe1274bd9 (diff) | |
download | rails-d364164763cd4e8868e47f4093ec8e329a33dbc4.tar.gz rails-d364164763cd4e8868e47f4093ec8e329a33dbc4.tar.bz2 rails-d364164763cd4e8868e47f4093ec8e329a33dbc4.zip |
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
-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 |