瀏覽代碼

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

Fix #12087
master
Eugen Rochko GitHub 9 月之前
父節點
當前提交
ebe574d5b5
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      db/migrate/20181024224956_migrate_account_conversations.rb

+ 1
- 1
db/migrate/20181024224956_migrate_account_conversations.rb 查看文件

@@ -52,6 +52,6 @@ class MigrateAccountConversations < ActiveRecord::Migration[5.2]
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

Loading…
取消
儲存