mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
Add composite index to stats table if not exists
This commit is contained in:
parent
20a4553921
commit
35995e7be8
1 changed files with 2 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ class AddCompositeIndexToStats < ActiveRecord::Migration[8.0]
|
|||
add_index :stats, %i[user_id year month],
|
||||
name: 'index_stats_on_user_id_year_month',
|
||||
unique: true,
|
||||
algorithm: :concurrently
|
||||
algorithm: :concurrently,
|
||||
if_not_exists: true
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue