Fix Rails/SquishedSQLHeredocs cop (#24694)

This commit is contained in:
Matt Jankowski 2023-04-30 00:43:50 -04:00 committed by GitHub
parent 8dcfb6e0ea
commit 60ac9e8634
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 16 deletions

View file

@ -2,7 +2,7 @@ class RemoveBoostsWideningAudience < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
def up
public_boosts = Status.find_by_sql(<<-SQL)
public_boosts = Status.find_by_sql(<<-SQL.squish)
SELECT boost.id
FROM statuses AS boost
LEFT JOIN statuses AS boosted ON boost.reblog_of_id = boosted.id