about summary refs log tree commit diff stats
path: root/db/migrate/20231014141657_add_reply_to_comment.rb
blob: 8e7b4452a934aca843ab0c4940d119940adb0d85 (plain) (blame)
1
2
3
4
5
class AddReplyToComment < ActiveRecord::Migration[7.0]
  def change
    add_reference :comments, :reply_to, foreign_key: { to_table: :comments }
  end
end