mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-08-31 15:33:01 +00:00
6 lines
179 B
Ruby
6 lines
179 B
Ruby
|
class AddReblogOfIdForeignKeyToStatuses < ActiveRecord::Migration[5.0]
|
||
|
def change
|
||
|
add_foreign_key :statuses, :statuses, column: :reblog_of_id, on_delete: :cascade
|
||
|
end
|
||
|
end
|