Add recruits column to weapons

This commit is contained in:
Justin Edmund 2025-01-15 02:02:42 -08:00
parent 386515cd18
commit eb44c04eb5
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddRecruitsToWeapons < ActiveRecord::Migration[7.0]
def change
add_column :weapons, :recruits, :string
end
end

View file

@ -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_10_070255) do ActiveRecord::Schema[7.0].define(version: 2025_01_15_094528) 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"
@ -469,6 +469,7 @@ ActiveRecord::Schema[7.0].define(version: 2025_01_10_070255) do
t.string "nicknames_jp", default: [], null: false, array: true t.string "nicknames_jp", default: [], null: false, array: true
t.boolean "transcendence", default: false t.boolean "transcendence", default: false
t.date "transcendence_date" t.date "transcendence_date"
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_id"], name: "index_weapons_on_recruits_id"
end end