delete from in migration
This commit is contained in:
parent
70e4a671a2
commit
98633658f4
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue