X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fmodels%2Fcustomer.rb;h=1a86679c408058700a2bcbd098ee8c21f92312d7;hb=be6d865110840adfc90f572a4cf14f62bc4cf31e;hp=760a3dc34418dfe4bc4b5ae531a7df3f5ea7c111;hpb=f09365a8d79a8a4a756fdba732bb753829df0df2;p=cs356-p2-videostore.git diff --git a/app/models/customer.rb b/app/models/customer.rb index 760a3dc..1a86679 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -1,4 +1,5 @@ class Customer < ActiveRecord::Base + has_many :coitem validates_presence_of :name, :email, :phone, :address validates_numericality_of :debt