gab-social/db/migrate/20200707212650_add_index_to_account_flags.rb
mgabdev 5c36a30b69 Added new migrations for adding indexes
• Added:
- new migrations for adding indexes
2020-07-07 17:25:47 -05:00

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