Remove recruits_id and index recruits
This commit is contained in:
parent
2ff6cd233a
commit
aa42ef04b6
3 changed files with 13 additions and 3 deletions
|
|
@ -0,0 +1,6 @@
|
||||||
|
class RemoveRecruitsIdFromWeapons < ActiveRecord::Migration[7.0]
|
||||||
|
def change
|
||||||
|
remove_column :weapons, :recruits_id, :uuid
|
||||||
|
remove_index :weapons, :recruits_id if index_exists?(:weapons, :recruits_id)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
class AddIndexToWeaponRecruits < ActiveRecord::Migration[7.0]
|
||||||
|
def change
|
||||||
|
add_index :weapons, :recruits
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema[7.0].define(version: 2025_01_15_094528) do
|
ActiveRecord::Schema[7.0].define(version: 2025_01_15_100356) do
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "btree_gin"
|
enable_extension "btree_gin"
|
||||||
enable_extension "pg_trgm"
|
enable_extension "pg_trgm"
|
||||||
|
|
@ -456,7 +456,6 @@ ActiveRecord::Schema[7.0].define(version: 2025_01_15_094528) do
|
||||||
t.integer "ax_type"
|
t.integer "ax_type"
|
||||||
t.boolean "limit", default: false, null: false
|
t.boolean "limit", default: false, null: false
|
||||||
t.boolean "ax", default: false, null: false
|
t.boolean "ax", default: false, null: false
|
||||||
t.uuid "recruits_id"
|
|
||||||
t.integer "max_awakening_level"
|
t.integer "max_awakening_level"
|
||||||
t.date "release_date"
|
t.date "release_date"
|
||||||
t.date "flb_date"
|
t.date "flb_date"
|
||||||
|
|
@ -471,7 +470,7 @@ ActiveRecord::Schema[7.0].define(version: 2025_01_15_094528) do
|
||||||
t.date "transcendence_date"
|
t.date "transcendence_date"
|
||||||
t.string "recruits"
|
t.string "recruits"
|
||||||
t.index ["name_en"], name: "index_weapons_on_name_en", opclass: :gin_trgm_ops, using: :gin
|
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"], name: "index_weapons_on_recruits"
|
||||||
end
|
end
|
||||||
|
|
||||||
add_foreign_key "favorites", "parties"
|
add_foreign_key "favorites", "parties"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue