Add guidebooks flag and auto summon flag

* Guidebooks → RaidGroup
* Auto summon → Party
This commit is contained in:
Justin Edmund 2023-06-18 02:02:45 -07:00
parent cd5d2a431b
commit 02559a4e79
3 changed files with 13 additions and 44 deletions

View file

@ -0,0 +1,5 @@
class AddGuidebooksToRaidGroups < ActiveRecord::Migration[7.0]
def change
add_column :raid_groups, :guidebooks, :boolean, default: false, null: false
end
end

View file

@ -0,0 +1,5 @@
class AddAutoSummonToParties < ActiveRecord::Migration[7.0]
def change
add_column :parties, :auto_summon, :boolean, default: false, null: false
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2023_05_31_115422) do
ActiveRecord::Schema[7.0].define(version: 2023_06_18_051638) do
# These are extensions that must be enabled in order to support this database
enable_extension "btree_gin"
enable_extension "pg_trgm"
@ -147,29 +147,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_05_31_115422) do
t.index ["gacha_id"], name: "index_gacha_rateups_on_gacha_id"
end
create_table "gacha", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.boolean "premium"
t.boolean "classic"
t.boolean "flash"
t.boolean "legend"
t.boolean "valentines"
t.boolean "summer"
t.boolean "halloween"
t.boolean "holiday"
t.string "drawable_type"
t.uuid "drawable_id"
t.index ["drawable_id"], name: "index_gacha_on_drawable_id", unique: true
t.index ["drawable_type", "drawable_id"], name: "index_gacha_on_drawable"
end
create_table "gacha_rateups", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "gacha_id"
t.string "user_id"
t.decimal "rate"
t.datetime "created_at", default: -> { "CURRENT_TIMESTAMP" }, null: false
t.index ["gacha_id"], name: "index_gacha_rateups_on_gacha_id"
end
create_table "grid_characters", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "party_id"
t.uuid "character_id"
@ -242,15 +219,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_05_31_115422) do
t.datetime "created_at", default: -> { "CURRENT_TIMESTAMP" }, null: false
end
create_table "guidebooks", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "granblue_id", null: false
t.string "name_en", null: false
t.string "name_jp", null: false
t.string "description_en", null: false
t.string "description_jp", null: false
t.datetime "created_at", default: -> { "CURRENT_TIMESTAMP" }, null: false
end
create_table "job_accessories", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "job_id"
t.string "name_en", null: false
@ -364,16 +332,11 @@ ActiveRecord::Schema[7.0].define(version: 2023_05_31_115422) do
t.uuid "guidebook3_id"
t.uuid "guidebook1_id"
t.uuid "guidebook2_id"
t.uuid "guidebook3_id"
t.uuid "guidebook1_id"
t.uuid "guidebook2_id"
t.boolean "auto_summon", default: false, null: false
t.index ["accessory_id"], name: "index_parties_on_accessory_id"
t.index ["guidebook1_id"], name: "index_parties_on_guidebook1_id"
t.index ["guidebook2_id"], name: "index_parties_on_guidebook2_id"
t.index ["guidebook3_id"], name: "index_parties_on_guidebook3_id"
t.index ["guidebook1_id"], name: "index_parties_on_guidebook1_id"
t.index ["guidebook2_id"], name: "index_parties_on_guidebook2_id"
t.index ["guidebook3_id"], name: "index_parties_on_guidebook3_id"
t.index ["job_id"], name: "index_parties_on_job_id"
t.index ["skill0_id"], name: "index_parties_on_skill0_id"
t.index ["skill1_id"], name: "index_parties_on_skill1_id"
@ -391,6 +354,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_05_31_115422) do
t.integer "section", default: 1, null: false
t.boolean "extra", default: false, null: false
t.boolean "hl", default: true, null: false
t.boolean "guidebooks", default: false, null: false
end
create_table "raids", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
@ -500,10 +464,8 @@ ActiveRecord::Schema[7.0].define(version: 2023_05_31_115422) do
t.string "nicknames_en", default: [], null: false, array: true
t.string "nicknames_jp", default: [], null: false, array: true
t.uuid "recruits_id"
t.uuid "recruits_id"
t.index ["name_en"], name: "index_weapons_on_name_en", opclass: :gin_trgm_ops, using: :gin
t.index ["recruits_id"], name: "index_weapons_on_recruits_id"
t.index ["recruits_id"], name: "index_weapons_on_recruits_id"
end
add_foreign_key "favorites", "parties"
@ -521,9 +483,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_05_31_115422) do
add_foreign_key "parties", "guidebooks", column: "guidebook1_id"
add_foreign_key "parties", "guidebooks", column: "guidebook2_id"
add_foreign_key "parties", "guidebooks", column: "guidebook3_id"
add_foreign_key "parties", "guidebooks", column: "guidebook1_id"
add_foreign_key "parties", "guidebooks", column: "guidebook2_id"
add_foreign_key "parties", "guidebooks", column: "guidebook3_id"
add_foreign_key "parties", "job_accessories", column: "accessory_id"
add_foreign_key "parties", "job_skills", column: "skill0_id"
add_foreign_key "parties", "job_skills", column: "skill1_id"