Add slug to weapon key table

This commit is contained in:
Justin Edmund 2022-12-23 23:31:34 -08:00
parent ddae480f48
commit 4f4d9e27a7
3 changed files with 8 additions and 2 deletions

View file

@ -10,7 +10,7 @@ module Api
} }
end end
fields :series, :slot, :group, :order fields :slug, :series, :slot, :group, :order
end end
end end
end end

View file

@ -0,0 +1,5 @@
class AddSlugToWeaponKeys < ActiveRecord::Migration[6.1]
def change
add_column :weapon_keys, :slug, :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.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 # These are extensions that must be enabled in order to support this database
enable_extension "btree_gin" enable_extension "btree_gin"
@ -248,6 +248,7 @@ ActiveRecord::Schema.define(version: 2022_12_21_084556) do
t.integer "slot" t.integer "slot"
t.integer "group" t.integer "group"
t.integer "order" t.integer "order"
t.string "slug"
end end
create_table "weapons", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| create_table "weapons", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|