浏览代码

add balance promotion shop promotion

abiao 4 年之前
父节点
当前提交
a1aac59898
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/models/present.rb

+ 1 - 1
app/models/present.rb

@@ -2,7 +2,7 @@
 class Present < ActiveRecord::Base
   has_paper_trail
   self.table_name = "presents"
-  validates :code,:name,:remark,presence: true
+  validates :wx_user_id,:send_prod1,:remark,presence: true
   belongs_to :wx_user
   SOURCE_ENUM = [["店长促销发放", "shop"],
                  ["充值促销发放", "balance"],