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
- end
Add Comment
Please, Sign In to add comment