nas/db/migrate/20240227225017_create_pending_statuses.rb
KMY(雪あすか) 2ab9ea642a
Add: #595 リモート保留中アカウントからメンションが来た場合にuriを記録し、承認時にフェッチしに行く処理 (#620)
* Add: #591 リモート保留中アカウントからメンションが来た場合にuriを記録し、承認時にフェッチしに行く処理

* Rename fetch_remove_status_worker.rb to fetch_remote_status_worker.rb

* Wip

* Add lock code
2024-02-29 12:54:47 +09:00

13 lines
427 B
Ruby

# frozen_string_literal: true
class CreatePendingStatuses < ActiveRecord::Migration[7.1]
def change
create_table :pending_statuses do |t|
t.references :account, null: false, foreign_key: { on_delete: :cascade }
t.references :fetch_account, null: false, foreign_key: { to_table: 'accounts', on_delete: :cascade }
t.string :uri, null: false, index: { unique: true }
t.timestamps
end
end
end