Created
October 12, 2018 08:47
-
-
Save Tocacar/bbbfa3edd13e45ff8b61ee52babcc3f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment