2
0

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