OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/db/migrate/20210910092414_add_bcf_comm...

7 lines
247 B

class AddBcfCommentHierarchy < ActiveRecord::Migration[6.1]
def change
add_column :bcf_comments, :reply_to, :bigint, default: nil, null: true
add_foreign_key :bcf_comments, :bcf_comments, column: :reply_to, on_delete: :nullify
end
end