From 8d68a97ab167b56656320b3cad79594c872f2918 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Mon, 30 Jan 2023 03:45:09 -0800 Subject: [PATCH] Add missing migration --- db/migrate/20230130114432_add_accessory_and_type_to_jobs.rb | 6 ++++++ db/schema.rb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20230130114432_add_accessory_and_type_to_jobs.rb diff --git a/db/migrate/20230130114432_add_accessory_and_type_to_jobs.rb b/db/migrate/20230130114432_add_accessory_and_type_to_jobs.rb new file mode 100644 index 0000000..cd1f983 --- /dev/null +++ b/db/migrate/20230130114432_add_accessory_and_type_to_jobs.rb @@ -0,0 +1,6 @@ +class AddAccessoryAndTypeToJobs < ActiveRecord::Migration[7.0] + def change + add_column :jobs, :accessory, :boolean, default: false + add_column :jobs, :accessory_type, :integer, default: 0 + end +end diff --git a/db/schema.rb b/db/schema.rb index 7eebcb5..6ff5519 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -221,9 +221,9 @@ ActiveRecord::Schema[7.0].define(version: 2023_01_28_091710) do t.integer "chain_count" t.integer "turn_count" t.uuid "source_party_id" + t.uuid "accessory_id" t.integer "characters_count" t.integer "summons_count" - t.uuid "accessory_id" t.index ["accessory_id"], name: "index_parties_on_accessory_id" t.index ["job_id"], name: "index_parties_on_job_id" t.index ["skill0_id"], name: "index_parties_on_skill0_id"