Merge branch 'dev_aliyun' of http://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun
commit
a2162e60f1
@ -1,6 +1,7 @@
|
||||
class HackSet < ApplicationRecord
|
||||
validates :input, presence: { message: "测试集输入不能为空" }
|
||||
#validates :input, presence: { message: "测试集输入不能为空" }
|
||||
validates :output, presence: { message: "测试集输出不能为空" }
|
||||
validates_uniqueness_of :input, scope: [:hack_id, :input], message: "多个测试集的输入不能相同"
|
||||
# 编程题测试集
|
||||
belongs_to :hack
|
||||
end
|
||||
|
Loading…
Reference in new issue