lib/ez/schema_modifier.rb in ez-1.1.0 vs lib/ez/schema_modifier.rb in ez-1.1.1

- old
+ new

@@ -97,10 +97,12 @@ display_change "Changing column type for #{col_name} to #{col_type} for model #{model_name}" end # puts "#{table_name} #{col_name}: #{db_col.default} and #{col_default}" if db_col.default != col_default - display_change "Applying new default value #{col_default || 'NULL'} for #{col_name} for model #{model_name}" + displayable_value = col_default + displayable_value = "NULL" if col_default.nil? + display_change "Applying new default value #{displayable_value} for #{col_name} for model #{model_name}" end if (db_col.type != col_type) || (db_col.default != col_default) db.change_column(table_name, col_name.to_sym, col_type.to_sym, default: col_default) unless @dry_run end