a guest Oct 12th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Class Person < ActiveRecord::ApplicationRecord
  2.   validates :name, presence: true
  3.   validates :date_of_birth, presence: true, if: create_stage > 1
  4.   Validates :ni_number, presence: true, if: create_stage > 2
  5. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand