diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-20 00:14:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 06:14:10 +0100 |
commit | bf785df9fe044f2f13bfb93e6860a74084d8eb8a (patch) | |
tree | 9e4c5263c97b69f2359ef1105df23530521e13f5 /db/migrate/20170610000000_add_statuses_index_on_account_id_id.rb | |
parent | 4552685f6bd400666ec4058783eeabb11568e575 (diff) |
Audofix Rubocop Style/WordArray (#23739)
Diffstat (limited to 'db/migrate/20170610000000_add_statuses_index_on_account_id_id.rb')
-rw-r--r-- | db/migrate/20170610000000_add_statuses_index_on_account_id_id.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20170610000000_add_statuses_index_on_account_id_id.rb b/db/migrate/20170610000000_add_statuses_index_on_account_id_id.rb index 3e74346a8..86e425559 100644 --- a/db/migrate/20170610000000_add_statuses_index_on_account_id_id.rb +++ b/db/migrate/20170610000000_add_statuses_index_on_account_id_id.rb @@ -6,7 +6,7 @@ class AddStatusesIndexOnAccountIdId < ActiveRecord::Migration[5.1] # of an account to show them in his status page is one of the most # significant examples. # Add this index to improve the performance in such cases. - add_index 'statuses', ['account_id', 'id'], algorithm: :concurrently, name: 'index_statuses_on_account_id_id' + add_index 'statuses', %w(account_id id), algorithm: :concurrently, name: 'index_statuses_on_account_id_id' remove_index 'statuses', algorithm: :concurrently, column: 'account_id', name: 'index_statuses_on_account_id' end |