delete from in migration

This commit is contained in:
Raphael Sofaer 2011-03-11 14:59:01 -08:00
parent 70e4a671a2
commit 98633658f4

View file

@ -6,7 +6,7 @@ class DowncaseTags < ActiveRecord::Migration
execute("UPDATE taggings execute("UPDATE taggings
SET taggings.tag_id = #{keep_tag.first} SET taggings.tag_id = #{keep_tag.first}
WHERE taggings.tag_id = #{bad_tag.first};") WHERE taggings.tag_id = #{bad_tag.first};")
execute("DELETE tags WHERE tags.id = #{bad_tag.first};") execute("DELETE FROM tags WHERE tags.id = #{bad_tag.first};")
end end
end end
def self.up def self.up