don't remove indexes after you remove one of their columns!

This commit is contained in:
Rafael Schouten
2014-10-17 08:22:21 +11:00
parent b853f908d3
commit 2e3cb171a3

View File

@@ -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)