Fix migration issue for mysql with index not being removed

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-12-23 10:52:21 +02:00
parent f023db2b47
commit 031461e106
No known key found for this signature in database
GPG Key ID: 161B5D6A44D3D88A
1 changed files with 2 additions and 0 deletions

View File

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