Skip to content
Snippets Groups Projects
Commit 3620ea42 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix migration issue for mysql with index not being removed

parent 07bee141
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -14,6 +14,7 @@ SELECT provider, extern_uid, id FROM users
WHERE provider IS NOT NULL
eos
 
remove_index :users, ["extern_uid", "provider"]
remove_column :users, :extern_uid
remove_column :users, :provider
end
Loading
Loading
@@ -34,5 +35,6 @@ eos
end
 
drop_table :identities
add_index "users", ["extern_uid", "provider"], name: "index_users_on_extern_uid_and_provider", unique: true, using: :btree
end
end
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