From c336aef449886789de2c22c3dd04cce5eab90d38 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 28 Jan 2023 04:19:53 -0800 Subject: [PATCH] Remove accessory fields from JobBlueprint --- app/blueprints/api/v1/job_blueprint.rb | 2 +- db/schema.rb | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/blueprints/api/v1/job_blueprint.rb b/app/blueprints/api/v1/job_blueprint.rb index fe9a079..43fabec 100644 --- a/app/blueprints/api/v1/job_blueprint.rb +++ b/app/blueprints/api/v1/job_blueprint.rb @@ -17,7 +17,7 @@ module Api ] end - fields :granblue_id, :row, :ml, :order, :accessory, :accessory_type + fields :granblue_id, :row, :ml, :order end end end diff --git a/db/schema.rb b/db/schema.rb index 2f26c93..7eebcb5 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -16,6 +16,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_01_28_091710) do enable_extension "pg_trgm" enable_extension "pgcrypto" enable_extension "plpgsql" + enable_extension "timescaledb" create_table "app_updates", primary_key: "updated_at", id: :datetime, force: :cascade do |t| t.string "update_type", null: false @@ -154,8 +155,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_01_28_091710) do t.integer "order" t.uuid "base_job_id" t.string "granblue_id" - t.boolean "accessory", default: false - t.integer "accessory_type", default: 0 t.index ["base_job_id"], name: "index_jobs_on_base_job_id" end @@ -222,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"