~cytrogen/masto-fe

ref: 4ea24537cf9c1fafd0edf79acd8cf666be662fbe masto-fe/db/migrate/20210322164601_create_account_summaries.rb -rw-r--r-- 326 bytes
4ea24537 — dependabot[bot] Bump rubocop-performance from 1.17.1 to 1.18.0 (#25089) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
class CreateAccountSummaries < ActiveRecord::Migration[5.2]
  def change
    create_view :account_summaries, materialized: { no_data: true }

    # To be able to refresh the view concurrently,
    # at least one unique index is required
    safety_assured { add_index :account_summaries, :account_id, unique: true }
  end
end