Add slug to weapon key table
This commit is contained in:
parent
ddae480f48
commit
4f4d9e27a7
3 changed files with 8 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ module Api
|
|||
}
|
||||
end
|
||||
|
||||
fields :series, :slot, :group, :order
|
||||
fields :slug, :series, :slot, :group, :order
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
5
db/migrate/20221224065845_add_slug_to_weapon_keys.rb
Normal file
5
db/migrate/20221224065845_add_slug_to_weapon_keys.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddSlugToWeaponKeys < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :weapon_keys, :slug, :string
|
||||
end
|
||||
end
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2022_12_21_084556) do
|
||||
ActiveRecord::Schema.define(version: 2022_12_24_065845) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "btree_gin"
|
||||
|
|
@ -248,6 +248,7 @@ ActiveRecord::Schema.define(version: 2022_12_21_084556) do
|
|||
t.integer "slot"
|
||||
t.integer "group"
|
||||
t.integer "order"
|
||||
t.string "slug"
|
||||
end
|
||||
|
||||
create_table "weapons", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
||||
|
|
|
|||
Loading…
Reference in a new issue