Count destroy attribute also as executed (no matter if database has changed).

This commit is contained in:
Martin Edenhofer 2016-05-24 07:49:54 +02:00
parent 3cc4a8f3a3
commit 3c3a6c7ff0

View file

@ -378,8 +378,8 @@ returns
if model.column_names.include?(attribute.name) if model.column_names.include?(attribute.name)
ActiveRecord::Migration.remove_column model.table_name, attribute.name ActiveRecord::Migration.remove_column model.table_name, attribute.name
model.reset_column_information model.reset_column_information
execute_count += 1
end end
execute_count += 1
attribute.destroy attribute.destroy
next next
end end