diff options
Diffstat (limited to 'app/models/wine.rb')
-rw-r--r-- | app/models/wine.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/wine.rb b/app/models/wine.rb new file mode 100644 index 0000000..a47022e --- /dev/null +++ b/app/models/wine.rb @@ -0,0 +1,4 @@ +class Wine < ApplicationRecord + validates :name, presence: true + validates :year, presence: true +end |