You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/db/migrate/20240229163603_create_local...

11 lines
445 B
Ruby

class CreateLocalPreviewCards < ActiveRecord::Migration[7.1]
def change
create_table :local_preview_cards do |t|
t.belongs_to :status, foreign_key: { on_delete: :cascade }, null: false
t.belongs_to :target_status, foreign_key: { on_delete: :cascade, to_table: :statuses }, null: true
t.belongs_to :target_account, foreign_key: { on_delete: :cascade, to_table: :accounts }, null: true
t.timestamps
end
end
end