Explorar el Código

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

Fix #12087
master
Eugen Rochko GitHub hace 9 meses
padre
commit
ebe574d5b5
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      db/migrate/20181024224956_migrate_account_conversations.rb

+ 1
- 1
db/migrate/20181024224956_migrate_account_conversations.rb Ver fichero

@@ -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

Cargando…
Cancelar
Guardar