Add version field
This commit is contained in:
parent
159439a67e
commit
8bd78d7764
3 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
5
db/migrate/20230126040207_add_version_to_app_updates.rb
Normal file
5
db/migrate/20230126040207_add_version_to_app_updates.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddVersionToAppUpdates < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_column :app_updates, :version, :string
|
||||
end
|
||||
end
|
||||
|
|
@ -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|
|
||||
|
|
|
|||
Loading…
Reference in a new issue