Skip to content

Commit

Permalink
Correctly reset null to true in migration generator
Browse files Browse the repository at this point in the history
  • Loading branch information
al2o3cr committed Aug 30, 2008
1 parent 9f1ec75 commit 521d2b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hobofields/lib/hobo_fields/migration_generator.rb
Expand Up @@ -248,7 +248,7 @@ def change_table(model, current_table_name)
change_spec[:limit] = spec.limit unless spec.limit.nil? && col.limit.nil?
change_spec[:precision] = spec.precision unless spec.precision.nil?
change_spec[:scale] = spec.scale unless spec.scale.nil?
change_spec[:null] = false unless spec.null
change_spec[:null] = spec.null unless spec.null && col.null
change_spec[:default] = spec.default unless spec.default.nil? && col.default.nil?

changes << "change_column :#{new_table_name}, :#{c}, " +
Expand Down

0 comments on commit 521d2b6

Please sign in to comment.