Merge pull request #8736 from gschlager/rename_reply_id_column

REFACTOR: Rename `post_replies.reply_id` column to `post_replies.reply_post_id`
This commit is contained in:
Gerhard Schlager
2020-01-17 17:24:49 +01:00
committed by GitHub
parent 3b5a6c9895
commit ab07b945c2
14 changed files with 81 additions and 30 deletions

View File

@ -114,7 +114,7 @@ module Email
referenced_posts = Post.includes(:incoming_email)
.joins("INNER JOIN post_replies ON post_replies.post_id = posts.id ")
.where("post_replies.reply_id = ?", post_id)
.where("post_replies.reply_post_id = ?", post_id)
.order(id: :desc)
referenced_post_message_ids = referenced_posts.map do |referenced_post|