This commit is contained in:
albert
2013-03-23 11:49:25 -04:00
parent d0cc68ecb7
commit 0cfaed99e0
3 changed files with 16 additions and 1 deletions

View File

@@ -10,5 +10,9 @@ class AddIsBannedToPosts < ActiveRecord::Migration
PostFlag.where("reason ilike '%requested%' and reason <> 'Artist requested removal'").each do |flag|
flag.post.update_column(:is_banned, true)
end
PostFlag.where("reason ilike '%banned artist%'").each do |flag|
flag.post.update_column(:is_banned, true)
end
end
end