diff options
Diffstat (limited to 'activerecord/test/models/contract.rb')
-rw-r--r-- | activerecord/test/models/contract.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/models/contract.rb b/activerecord/test/models/contract.rb index f273badd85..3f663375c4 100644 --- a/activerecord/test/models/contract.rb +++ b/activerecord/test/models/contract.rb @@ -20,3 +20,7 @@ class Contract < ActiveRecord::Base @bye_count += 1 end end + +class NewContract < Contract + validates :company_id, presence: true +end |