(Hotfix) Fix stale migrations (#107)
* Remove print statements from data migration * (Hotfix) Fix data migration failing due to nil * Fix stale migration errors
This commit is contained in:
parent
15e0b5f5ff
commit
0befd788fc
3 changed files with 19 additions and 7 deletions
|
|
@ -95,7 +95,6 @@ class InitSchema < ActiveRecord::Migration[7.0]
|
|||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "transcendence_step", default: 0, null: false
|
||||
t.boolean "quick_summon", default: false, null: false
|
||||
t.index ["party_id"], name: "index_grid_summons_on_party_id"
|
||||
t.index ["summon_id"], name: "index_grid_summons_on_summon_id"
|
||||
end
|
||||
|
|
@ -238,7 +237,6 @@ class InitSchema < ActiveRecord::Migration[7.0]
|
|||
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"
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
class ReAddQuickSummonAndAutoSummonToGridSummonsAndParties < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_column :grid_summons, :quick_summon, :boolean, default: false, if_not_exists: true
|
||||
add_column :parties, :auto_summon, :boolean, default: false, if_not_exists: true
|
||||
end
|
||||
end
|
||||
18
db/schema.rb
18
db/schema.rb
|
|
@ -10,13 +10,12 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_06_19_045651) do
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_06_21_073125) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "btree_gin"
|
||||
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
|
||||
|
|
@ -65,9 +64,14 @@ ActiveRecord::Schema[7.0].define(version: 2023_06_19_045651) do
|
|||
t.uuid "character_id"
|
||||
t.string "name_en", null: false
|
||||
t.string "name_jp", null: false
|
||||
t.string "slug", null: false
|
||||
t.string "object_type", null: false
|
||||
t.integer "order", default: 0, null: false
|
||||
t.string "description_en", null: false
|
||||
t.string "description_jp", null: false
|
||||
t.integer "position", null: false
|
||||
t.integer "obtained_at"
|
||||
t.boolean "emp", default: false, null: false
|
||||
t.boolean "transcendence", default: false, null: false
|
||||
t.uuid "effects", array: true
|
||||
t.index ["character_id"], name: "index_character_support_skills_on_character_id"
|
||||
end
|
||||
|
||||
create_table "characters", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
||||
|
|
@ -97,6 +101,8 @@ ActiveRecord::Schema[7.0].define(version: 2023_06_19_045651) do
|
|||
t.integer "max_hp_ulb"
|
||||
t.integer "max_atk_ulb"
|
||||
t.integer "character_id", default: [], null: false, array: true
|
||||
t.string "nicknames_en", default: [], null: false, array: true
|
||||
t.string "nicknames_jp", default: [], null: false, array: true
|
||||
t.index ["name_en"], name: "index_characters_on_name_en", opclass: :gin_trgm_ops, using: :gin
|
||||
end
|
||||
|
||||
|
|
@ -412,6 +418,8 @@ ActiveRecord::Schema[7.0].define(version: 2023_06_19_045651) do
|
|||
t.boolean "xlb", default: false, null: false
|
||||
t.integer "max_atk_xlb"
|
||||
t.integer "max_hp_xlb"
|
||||
t.string "nicknames_en", default: [], null: false, array: true
|
||||
t.string "nicknames_jp", default: [], null: false, array: true
|
||||
t.index ["name_en"], name: "index_summons_on_name_en", opclass: :gin_trgm_ops, using: :gin
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue