projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Prettify the login page
[cs356-p2-videostore.git]
/
app
/
models
/
merchandise.rb
diff --git
a/app/models/merchandise.rb
b/app/models/merchandise.rb
index
463cfd3
..
efb7c7e
100644
(file)
--- a/
app/models/merchandise.rb
+++ b/
app/models/merchandise.rb
@@
-1,5
+1,7
@@
class Merchandise < ActiveRecord::Base
- validates_presence_of :name
+ has_many :merchandise_purchases
+
+ validates_presence_of :title
validates_numericality_of :quantity
validates_numericality_of :price