From 2022831d4960054aef904e27fd2934beb4e3c65e Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 14 Nov 2024 17:16:43 +0000 Subject: Adds category model but not wired up to resource yet --- db/migrate/20241114170349_create_categories.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 db/migrate/20241114170349_create_categories.rb (limited to 'db/migrate/20241114170349_create_categories.rb') 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 -- cgit v1.2.3