projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add merchandise MVC
[cs356-p2-videostore.git]
/
app
/
models
/
customer.rb
diff --git
a/app/models/customer.rb
b/app/models/customer.rb
index
760a3dc
..
1a86679
100644
(file)
--- a/
app/models/customer.rb
+++ b/
app/models/customer.rb
@@
-1,4
+1,5
@@
class Customer < ActiveRecord::Base
class Customer < ActiveRecord::Base
+ has_many :coitem
validates_presence_of :name, :email, :phone, :address
validates_numericality_of :debt
validates_presence_of :name, :email, :phone, :address
validates_numericality_of :debt