📜  活动记录验证 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:04.200000             🧑  作者: Mango

代码示例2
class Person < ApplicationRecord
  validates :name, :login, :email, presence: true
end