瀏覽代碼

add column

abiao 2 年之前
父節點
當前提交
85e6ff294b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/models/forbid_date.rb

+ 1 - 0
app/models/forbid_date.rb

@@ -7,6 +7,7 @@ class ForbidDate < ActiveRecord::Base
 
   after_update :sync_forbid_date
   after_create :sync_forbid_date
+  after_destroy :sync_forbid_date
 
   def sync_forbid_date
     #发放未发放赠品