组织匿名数据处理
This commit is contained in:
parent
19734c1aa4
commit
160b05ae89
|
@ -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
|
Loading…
Reference in New Issue