diff --git a/db/migrate/20250115094528_add_recruits_to_weapons.rb b/db/migrate/20250115094528_add_recruits_to_weapons.rb new file mode 100644 index 0000000..2d6ca85 --- /dev/null +++ b/db/migrate/20250115094528_add_recruits_to_weapons.rb @@ -0,0 +1,5 @@ +class AddRecruitsToWeapons < ActiveRecord::Migration[7.0] + def change + add_column :weapons, :recruits, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index c4468fd..3c1ed5f 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # 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 enable_extension "btree_gin" 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.boolean "transcendence", default: false 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 ["recruits_id"], name: "index_weapons_on_recruits_id" end