diff options
Diffstat (limited to '')
-rw-r--r-- | db/migrate/20241114170349_create_categories.rb | 11 | ||||
-rw-r--r-- | db/schema.rb | 10 |
2 files changed, 20 insertions, 1 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 diff --git a/db/schema.rb b/db/schema.rb index e09d8c2..8c534b7 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[8.0].define(version: 2024_11_14_152810) do +ActiveRecord::Schema[8.0].define(version: 2024_11_14_170349) do create_table "active_storage_attachments", force: :cascade do |t| t.string "name", null: false t.string "record_type", null: false @@ -39,6 +39,14 @@ ActiveRecord::Schema[8.0].define(version: 2024_11_14_152810) do t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true end + create_table "categories", force: :cascade do |t| + t.string "name" + t.string "colour" + t.string "badge_foreground_colour" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + create_table "pdfresources", force: :cascade do |t| t.string "name" t.string "stripe_product_id" |