Add status expiration

This commit is contained in:
KMY 2023-03-21 11:12:33 +09:00
parent 57c12e4fad
commit 16079b4db5
11 changed files with 120 additions and 1 deletions

View file

@ -0,0 +1,14 @@
# frozen_string_literal: true
class CreateScheduledExpirationStatuses < ActiveRecord::Migration[6.1]
def change
create_table :scheduled_expiration_statuses do |t|
t.belongs_to :account, foreign_key: { on_delete: :cascade }
t.belongs_to :status, null: false, foreign_key: { on_delete: :cascade }
t.datetime :scheduled_at, index: true
t.datetime :created_at, null: false
t.datetime :updated_at, null: false
end
end
end