20220131135531_issue3940_add_index.rb 303 B

12345678910
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Issue3940AddIndex < ActiveRecord::Migration[6.0]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. add_index :groups_users, %i[user_id group_id access]
  7. end
  8. end