about summary refs log tree commit diff stats
path: root/db/migrate/20231014141657_add_reply_to_comment.rb
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-14 11:12:05 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-14 11:12:05 -0400
commitfce622b5b1959892b6f6ea94bfe3a1c4eb52d8dd (patch)
tree27d42a442c000781d100dfa7fd8b976aefb03c31 /db/migrate/20231014141657_add_reply_to_comment.rb
parent0aace2986a9a7a6d4c84a9ba6819d3df7821e267 (diff)
downloadthoughts-fce622b5b1959892b6f6ea94bfe3a1c4eb52d8dd.tar.gz
thoughts-fce622b5b1959892b6f6ea94bfe3a1c4eb52d8dd.tar.bz2
thoughts-fce622b5b1959892b6f6ea94bfe3a1c4eb52d8dd.zip
Added comment replying
Diffstat (limited to 'db/migrate/20231014141657_add_reply_to_comment.rb')
-rw-r--r--db/migrate/20231014141657_add_reply_to_comment.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20231014141657_add_reply_to_comment.rb b/db/migrate/20231014141657_add_reply_to_comment.rb new file mode 100644 index 0000000..8e7b445 --- /dev/null +++ b/db/migrate/20231014141657_add_reply_to_comment.rb
@@ -0,0 +1,5 @@
1class AddReplyToComment < ActiveRecord::Migration[7.0]
2 def change
3 add_reference :comments, :reply_to, foreign_key: { to_table: :comments }
4 end
5end