Add updates table
This commit is contained in:
parent
bc14ac80ec
commit
7911374c1e
2 changed files with 14 additions and 1 deletions
8
db/migrate/20230126030358_add_updates_table.rb
Normal file
8
db/migrate/20230126030358_add_updates_table.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
class AddUpdatesTable < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
create_table :app_updates, id: false do |t|
|
||||
t.string :update_type, null: false
|
||||
t.datetime :updated_at, null: false, unique: true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -10,13 +10,18 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_01_24_100823) do
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_01_26_030358) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "btree_gin"
|
||||
enable_extension "pg_trgm"
|
||||
enable_extension "pgcrypto"
|
||||
enable_extension "plpgsql"
|
||||
|
||||
create_table "app_updates", id: false, force: :cascade do |t|
|
||||
t.string "update_type", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "characters", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
||||
t.string "name_en"
|
||||
t.string "name_jp"
|
||||
|
|
|
|||
Loading…
Reference in a new issue