0
0
Fork 0

Enable Rubocop Style/StringConcatenation defaults (#23792)

This commit is contained in:
Nick Schonning 2023-02-21 19:54:36 -05:00 committed by GitHub
parent 7ecf783dd3
commit 0cfdd1a401
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 25 additions and 44 deletions

View file

@ -115,7 +115,7 @@ module Mastodon::Snowflake
# And only those that are using timestamp_id.
next unless (data = DEFAULT_REGEX.match(id_col.default_function))
seq_name = data[:seq_prefix] + '_id_seq'
seq_name = "#{data[:seq_prefix]}_id_seq"
# If we were on Postgres 9.5+, we could do CREATE SEQUENCE IF
# NOT EXISTS, but we can't depend on that. Instead, catch the