Enable Rubocop Style/NumericLiterals (#23647)

This commit is contained in:
Nick Schonning
2023-02-17 21:05:57 -05:00
committed by GitHub
parent 669f6d2c0a
commit ac59d6f19f
6 changed files with 18 additions and 24 deletions

View File

@@ -19,7 +19,7 @@ class CopyStatusStats < ActiveRecord::Migration[5.2]
def supports_upsert?
version = select_one("SELECT current_setting('server_version_num') AS v")['v'].to_i
version >= 90500
version >= 90_500
end
def up_fast

View File

@@ -19,7 +19,7 @@ class CopyAccountStats < ActiveRecord::Migration[5.2]
def supports_upsert?
version = select_one("SELECT current_setting('server_version_num') AS v")['v'].to_i
version >= 90500
version >= 90_500
end
def up_fast