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