a guest Oct 12th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- Class Person < ActiveRecord::ApplicationRecord
- validates :name, presence: true
- validates :date_of_birth, presence: true, if: create_stage > 1
- Validates :ni_number, presence: true, if: create_stage > 2
RAW Paste Data