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"