mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-08-25 01:44:52 +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
|