Changed `CONFLICT` to `SQL` for multiline strings

This is more consistent with the rest of our codebase.
This commit is contained in:
Robin Ward 2019-12-13 11:51:40 -05:00
parent 3816107560
commit a04a631674
1 changed files with 2 additions and 2 deletions

View File

@ -49,10 +49,10 @@ class TopicGroup < ActiveRecord::Base
query += 'AND NOT(tag.group_id IN (:already_updated_groups))' unless updated_group_ids.length.zero?
query += <<~CONFLICT
query += <<~SQL
ON CONFLICT(topic_id, group_id)
DO UPDATE SET last_read_post_number = :post_number, created_at = :now, updated_at = :now
CONFLICT
SQL
DB.exec(
query,