Commit ebe574d5 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub

Fix old migration trying to use new column due to default status scope (#12095)

Fix #12087
parent 6c9b4f6b
......@@ -52,6 +52,6 @@ class MigrateAccountConversations < ActiveRecord::Migration[5.2]
def notifications_about_direct_statuses
Notification.joins(mention: :status).where(activity_type: 'Mention', statuses: { visibility: :direct })
Notification.joins('INNER JOIN mentions ON = notifications.activity_id INNER JOIN statuses ON = mentions.status_id').where(activity_type: 'Mention', statuses: { visibility: :direct })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment