add expire at

This commit is contained in:
Pete Matsyburka
2024-08-01 16:43:55 +03:00
parent c4a91c2b34
commit 3a2910f717
13 changed files with 93 additions and 16 deletions
@@ -0,0 +1,7 @@
# frozen_string_literal: true
class AddExpireAtToSubmissions < ActiveRecord::Migration[7.1]
def change
add_column :submissions, :expire_at, :datetime
end
end
+2 -1
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.1].define(version: 2024_07_20_063827) do
ActiveRecord::Schema[7.1].define(version: 2024_08_01_125558) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -218,6 +218,7 @@ ActiveRecord::Schema[7.1].define(version: 2024_07_20_063827) do
t.string "slug", null: false
t.text "preferences", null: false
t.bigint "account_id", null: false
t.datetime "expire_at"
t.index ["account_id"], name: "index_submissions_on_account_id"
t.index ["created_by_user_id"], name: "index_submissions_on_created_by_user_id"
t.index ["slug"], name: "index_submissions_on_slug", unique: true