Skip to content
Snippets Groups Projects
Commit fd0d8a28 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Fix the AddNameIndexToNamespace migration to be reversible

parent d494c9a7
No related branches found
No related tags found
No related merge requests found
Loading
@@ -13,7 +13,7 @@ class AddNameIndexToNamespace < ActiveRecord::Migration
Loading
@@ -13,7 +13,7 @@ class AddNameIndexToNamespace < ActiveRecord::Migration
end end
   
def down def down
if index_exists?(:namespaces, :name) if index_exists?(:namespaces, [:name, :parent_id])
remove_index :namespaces, [:name, :parent_id] remove_index :namespaces, [:name, :parent_id]
end end
end end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment