projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert "Add the has_many_polymorphs purchaseable model"
[cs356-p2-videostore.git]
/
app
/
models
/
customer.rb
diff --git
a/app/models/customer.rb
b/app/models/customer.rb
index
1a86679
..
901b9a5
100644
(file)
--- 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