aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/contract.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/contract.rb')
-rw-r--r--activerecord/test/models/contract.rb4
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