Commit 3620ea42 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix migration issue for mysql with index not being removed

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 07bee141
......@@ -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
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment