diff --git a/db/migrate/20230126030358_add_updates_table.rb b/db/migrate/20230126030358_add_updates_table.rb new file mode 100644 index 0000000..47262d4 --- /dev/null +++ b/db/migrate/20230126030358_add_updates_table.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index 20c1efc..cd6e203 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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"