aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/20241114170349_create_categories.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 /db/migrate/20241114170349_create_categories.rb
parent9292aae8fe1876fe98c90ae0216fb4ea8917b38a (diff)
Adds category model but not wired up to resource yet
Diffstat (limited to '')
-rw-r--r--db/migrate/20241114170349_create_categories.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20241114170349_create_categories.rb b/db/migrate/20241114170349_create_categories.rb
new file mode 100644
index 0000000..983f85c
--- /dev/null
+++ b/db/migrate/20241114170349_create_categories.rb
@@ -0,0 +1,11 @@
+class CreateCategories < ActiveRecord::Migration[8.0]
+ def change
+ create_table :categories do |t|
+ t.string :name
+ t.string :colour
+ t.string :badge_foreground_colour
+
+ t.timestamps
+ end
+ end
+end