mirror of https://github.com/mastodon/mastodon.git
8 lines
242 B
Ruby
8 lines
242 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class AddTargetStatusForeignKeyToPreviewCards < ActiveRecord::Migration[7.1]
|
||
|
def change
|
||
|
add_foreign_key :preview_cards, :statuses, column: :target_status_id, on_delete: :cascade, validate: false
|
||
|
end
|
||
|
end
|