summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-06-29 13:09:27 -0700
committerStan Hu <stanhu@gmail.com>2016-06-29 13:09:27 -0700
commit094cd21c30513346379fc6e0668f203548b05a92 (patch)
treedf37336f3e57d3242e74c184ad49050e14fb0de6
parentcee69f8968dd4d6cd3009541ad244b928a24f8d7 (diff)
downloadgitlab-ce-094cd21c30513346379fc6e0668f203548b05a92.tar.gz
Fix missing quote_table_name
-rw-r--r--db/migrate/20160616102642_remove_duplicated_keys.rb2
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 (