Add version field

This commit is contained in:
Justin Edmund 2023-01-25 20:03:00 -08:00
parent 159439a67e
commit 8bd78d7764
3 changed files with 8 additions and 2 deletions

View file

@ -3,7 +3,7 @@
module Api
module V1
class UpdateBlueprint < Blueprinter::Base
fields :update_type, :updated_at
fields :version, :update_type, :updated_at
end
end
end

View file

@ -0,0 +1,5 @@
class AddVersionToAppUpdates < ActiveRecord::Migration[7.0]
def change
add_column :app_updates, :version, :string
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2023_01_26_030358) do
ActiveRecord::Schema[7.0].define(version: 2023_01_26_040207) do
# These are extensions that must be enabled in order to support this database
enable_extension "btree_gin"
enable_extension "pg_trgm"
@ -19,6 +19,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_01_26_030358) do
create_table "app_updates", primary_key: "updated_at", id: :datetime, force: :cascade do |t|
t.string "update_type", null: false
t.string "version"
end
create_table "characters", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|