课程名字太长无法保存

dev_cs_new
daiao 6 years ago
parent 5d8600c362
commit 674b665213

@ -91,7 +91,7 @@ class Course < ApplicationRecord
NORMAL = 6 # 普通用户 NORMAL = 6 # 普通用户
Anonymous = 7 # 普未登录 Anonymous = 7 # 普未登录
validates :name, presence: true, length: { maximum: 30 } validates :name, presence: true, length: { maximum: 60 }
after_create :create_board_sync, :act_as_course_activity, :send_tiding after_create :create_board_sync, :act_as_course_activity, :send_tiding

Loading…
Cancel
Save