|
|
@@ -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"],
|