diff options
author | Stan Hu <stanhu@gmail.com> | 2016-06-29 13:09:27 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-06-29 13:09:27 -0700 |
commit | 094cd21c30513346379fc6e0668f203548b05a92 (patch) | |
tree | df37336f3e57d3242e74c184ad49050e14fb0de6 | |
parent | cee69f8968dd4d6cd3009541ad244b928a24f8d7 (diff) | |
download | gitlab-ce-094cd21c30513346379fc6e0668f203548b05a92.tar.gz |
Fix missing quote_table_name
-rw-r--r-- | db/migrate/20160616102642_remove_duplicated_keys.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20160616102642_remove_duplicated_keys.rb b/db/migrate/20160616102642_remove_duplicated_keys.rb index c66da4e65d3..180a75e0998 100644 --- a/db/migrate/20160616102642_remove_duplicated_keys.rb +++ b/db/migrate/20160616102642_remove_duplicated_keys.rb @@ -4,7 +4,7 @@ class RemoveDuplicatedKeys < ActiveRecord::Migration select_all("SELECT fingerprint FROM #{quote_table_name(:keys)} GROUP BY fingerprint HAVING COUNT(*) > 1").each do |row| fingerprint = connection.quote(row['fingerprint']) execute(%Q{ - DELETE FROM keys + DELETE FROM #{quote_table_name(:keys)} WHERE fingerprint = #{fingerprint} AND id != ( SELECT id FROM ( |