组织匿名数据处理

This commit is contained in:
huang 2016-07-22 16:03:33 +08:00
parent 19734c1aa4
commit 160b05ae89
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
class DeleteOrgAnonymous < ActiveRecord::Migration
def up
anonymous_replys = OrgDocumentComment.where("organization_id = 23 AND creator_id = 2")
if anonymous_replys
anonymous_replys.destroy_all
end
end
def down
end
end