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