aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/category.rb
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-11-14 17:16:43 +0000
committerMatthew Lemon <y@yulqen.org>2024-11-14 17:16:43 +0000
commit2022831d4960054aef904e27fd2934beb4e3c65e (patch)
tree77f11b9c629d66b9782d7dc6c77105bb178116d8 /app/models/category.rb
parent9292aae8fe1876fe98c90ae0216fb4ea8917b38a (diff)
Adds category model but not wired up to resource yet
Diffstat (limited to 'app/models/category.rb')
-rw-r--r--app/models/category.rb3
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