From 2e3cb171a30adfbc7afad6bb9e127b64fb7bec79 Mon Sep 17 00:00:00 2001 From: Rafael Schouten Date: Fri, 17 Oct 2014 08:22:21 +1100 Subject: [PATCH] don't remove indexes after you remove one of their columns! --- db/migrate/20140927005043_enterprise_config_refactor.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/db/migrate/20140927005043_enterprise_config_refactor.rb b/db/migrate/20140927005043_enterprise_config_refactor.rb index 6161ff00a6..f9e8c936ce 100644 --- a/db/migrate/20140927005043_enterprise_config_refactor.rb +++ b/db/migrate/20140927005043_enterprise_config_refactor.rb @@ -25,8 +25,6 @@ class EnterpriseConfigRefactor < ActiveRecord::Migration end remove_column :enterprises, :sells - remove_index :enterprises, :sells - remove_index :enterprises, [:is_primary_producer, :sells] end def sells_what?(enterprise)