diff options
author | David Gay <eapoems@riseup.net> | 2023-10-31 02:04:58 -0400 |
---|---|---|
committer | David Gay <eapoems@riseup.net> | 2023-10-31 02:04:58 -0400 |
commit | 47be31b415f33efbe73055fd0bb297e88f758731 (patch) | |
tree | d73604168c4b493b6f1ce4332bd3fab05d33ce5d /db | |
parent | 52d46329e525133077b4f116c9e608128d8ba982 (diff) |
Checkpoint kinds: comment, checkin, checkout
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 |