Enable Rubocop Style/NumericLiterals (#23647)
This commit is contained in:
parent
669f6d2c0a
commit
ac59d6f19f
6 changed files with 18 additions and 24 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue