Fix broken migration in MySQL

Closes #19344
This commit is contained in:
Stan Hu 2016-06-29 11:22:18 -07:00
parent a4b1fe4de9
commit cee69f8968

View file

@ -9,7 +9,7 @@ class RemoveDuplicatedKeys < ActiveRecord::Migration
AND id != (
SELECT id FROM (
SELECT max(id) AS id
FROM keys
FROM #{quote_table_name(:keys)}
WHERE fingerprint = #{fingerprint}
) max_ids
)