diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20231031053134_add_kind_to_checkpoints.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20231031053134_add_kind_to_checkpoints.rb b/db/migrate/20231031053134_add_kind_to_checkpoints.rb new file mode 100644 index 0000000..2b71498 --- /dev/null +++ b/db/migrate/20231031053134_add_kind_to_checkpoints.rb @@ -0,0 +1,5 @@ +class AddKindToCheckpoints < ActiveRecord::Migration[7.1] + def change + add_column :checkpoints, :kind, :integer, default: 0 + end +end diff --git a/db/schema.rb b/db/schema.rb index bed04ff..b48737d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2023_10_31_050050) do +ActiveRecord::Schema[7.1].define(version: 2023_10_31_053134) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -49,6 +49,7 @@ ActiveRecord::Schema[7.1].define(version: 2023_10_31_050050) do t.bigint "user_id", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.integer "kind", default: 0 t.index ["run_id"], name: "index_checkpoints_on_run_id" t.index ["user_id"], name: "index_checkpoints_on_user_id" end |