20230524194155_add_index_instances_on_reverse_domain.rb 279 B

123456789
  1. # frozen_string_literal: true
  2. class AddIndexInstancesOnReverseDomain < ActiveRecord::Migration[6.1]
  3. disable_ddl_transaction!
  4. def change
  5. add_index :instances, "reverse('.' || domain), domain", name: :index_instances_on_reverse_domain, algorithm: :concurrently
  6. end
  7. end