From 3c3a6c7ff03b8b2b5a10acd27a9482b446945832 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 24 May 2016 07:49:54 +0200 Subject: [PATCH] Count destroy attribute also as executed (no matter if database has changed). --- app/models/object_manager/attribute.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/object_manager/attribute.rb b/app/models/object_manager/attribute.rb index cd1d44c54..76242e1c8 100644 --- a/app/models/object_manager/attribute.rb +++ b/app/models/object_manager/attribute.rb @@ -378,8 +378,8 @@ returns if model.column_names.include?(attribute.name) ActiveRecord::Migration.remove_column model.table_name, attribute.name model.reset_column_information - execute_count += 1 end + execute_count += 1 attribute.destroy next end