journal不应该算入ForgeActivity,历史数据应该删除

This commit is contained in:
lizanle 2015-12-18 10:48:13 +08:00
parent 47b20d3639
commit bba40de36d
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
# encoding: utf-8
class BatchDeleteProjectJournalActivities < ActiveRecord::Migration
def up
ForgeActivity.where('forge_act_type = \'Journal\'').destroy_all #需要触发回调
end
def down
end
end