projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Small Cleanups + Merchandise Search
[cs356-p2-videostore.git]
/
app
/
models
/
customer.rb
diff --git
a/app/models/customer.rb
b/app/models/customer.rb
index
acd6869
..
b9e6ab9
100644
(file)
--- a/
app/models/customer.rb
+++ b/
app/models/customer.rb
@@
-2,6
+2,8
@@
class Customer < ActiveRecord::Base
has_many :coitems
has_many :merchandise_purchases
has_many :rentable_purchases
+ has_many :bonus_purchases
+ has_many :late_fee_purchases
validates_presence_of :name, :email, :phone, :address
validates_numericality_of :debt