about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-17 21:05:57 -0500
committerGitHub <noreply@github.com>2023-02-18 11:05:57 +0900
commitac59d6f19f00f1503343cd587c4238dc0038127a (patch)
treeb0960d3c19a9cd516242622ff3fe71fc84b48881 /db
parent669f6d2c0af969268c76e389ed626bce0cc9f998 (diff)
Enable Rubocop Style/NumericLiterals (#23647)
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180812173710_copy_status_stats.rb2
-rw-r--r--db/migrate/20181116173541_copy_account_stats.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20180812173710_copy_status_stats.rb b/db/migrate/20180812173710_copy_status_stats.rb
index ff10c18d9..9b2971beb 100644
--- a/db/migrate/20180812173710_copy_status_stats.rb
+++ b/db/migrate/20180812173710_copy_status_stats.rb
@@ -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
diff --git a/db/migrate/20181116173541_copy_account_stats.rb b/db/migrate/20181116173541_copy_account_stats.rb
index 8e27eb11b..20dc85195 100644
--- a/db/migrate/20181116173541_copy_account_stats.rb
+++ b/db/migrate/20181116173541_copy_account_stats.rb
@@ -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