gab-social/db/migrate/20200707212650_add_index_to...

11 lines
359 B
Ruby

class AddIndexToAccountFlags < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
def change
add_index :accounts, :is_pro, algorithm: :concurrently
add_index :accounts, :is_verified, algorithm: :concurrently
add_index :accounts, :is_donor, algorithm: :concurrently
add_index :accounts, :is_investor, algorithm: :concurrently
end
end