Fix the AddNameIndexToNamespace migration to be reversible
This commit is contained in:
parent
d494c9a789
commit
fd0d8a2832
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ class AddNameIndexToNamespace < ActiveRecord::Migration
|
|||
end
|
||||
|
||||
def down
|
||||
if index_exists?(:namespaces, :name)
|
||||
if index_exists?(:namespaces, [:name, :parent_id])
|
||||
remove_index :namespaces, [:name, :parent_id]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue