This website works better with JavaScript
Home
Explore
Help
Sign In
PMD
/
rotom_bot
Watch
2
Star
0
Fork
0
Files
Issues
0
Pull Requests
1
Wiki
Browse Source
add item model
Kylie Jo Swistak
6 years ago
parent
a1f56624ad
commit
d2d24c0764
1 changed files
with
3 additions
and
0 deletions
Split View
Show Diff Stats
3
0
app/models/item.rb
+ 3
- 0
app/models/item.rb
View File
@@ -0,0 +1,3 @@
+class Item < ActiveRecord::Base
+ validates :name, presence: true
+end