Count destroy attribute also as executed (no matter if database has changed).
This commit is contained in:
parent
3cc4a8f3a3
commit
3c3a6c7ff0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue