socialforge/db/migrate/20160722074421_delete_org_a...

12 lines
246 B
Ruby
Raw Normal View History

2016-07-22 16:03:33 +08:00
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