Skip to content
Permalink
Browse files

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

  • Loading branch information...
Gargron committed Oct 7, 2019
1 parent 6c9b4f6 commit ebe574d5b57c647450cab3d4ca2e8ca52c4fb3fe
Showing with 1 addition and 1 deletion.
  1. +1 −1 db/migrate/20181024224956_migrate_account_conversations.rb
@@ -52,6 +52,6 @@ def local_direct_statuses
end

def notifications_about_direct_statuses
Notification.joins(mention: :status).where(activity_type: 'Mention', statuses: { visibility: :direct })
Notification.joins('INNER JOIN mentions ON mentions.id = notifications.activity_id INNER JOIN statuses ON statuses.id = mentions.status_id').where(activity_type: 'Mention', statuses: { visibility: :direct })
end
end

0 comments on commit ebe574d

Please sign in to comment.
You can’t perform that action at this time.