20201206004238_create_instances.rb 317 B

1234567891011
  1. # frozen_string_literal: true
  2. class CreateInstances < ActiveRecord::Migration[5.2]
  3. def change
  4. create_view :instances, materialized: true
  5. # To be able to refresh the view concurrently,
  6. # at least one unique index is required
  7. safety_assured { add_index :instances, :domain, unique: true }
  8. end
  9. end