From 70e4a671a27460d5df77e8a5a8fc9a71c9cf7e19 Mon Sep 17 00:00:00 2001 From: Raphael Sofaer <raphael@joindiaspora.com> Date: Fri, 11 Mar 2011 14:57:46 -0800 Subject: [PATCH] tags as array in migration --- db/migrate/20110311220249_downcase_tags.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20110311220249_downcase_tags.rb b/db/migrate/20110311220249_downcase_tags.rb index de53cf9bb4..874e27f2a6 100644 --- a/db/migrate/20110311220249_downcase_tags.rb +++ b/db/migrate/20110311220249_downcase_tags.rb @@ -1,6 +1,6 @@ class DowncaseTags < ActiveRecord::Migration def self.consolidate_tags_with_name(name) - tags = execute("SELECT * FROM tags WHERE tags.name = #{name};") + tags = execute("SELECT * FROM tags WHERE tags.name = #{name};").to_a keep_tag = tags.pop tags.each do |bad_tag| execute("UPDATE taggings -- GitLab