Added new migrations for adding indexes
• Added: - new migrations for adding indexes
This commit is contained in:
10
db/migrate/20200707212650_add_index_to_account_flags.rb
Normal file
10
db/migrate/20200707212650_add_index_to_account_flags.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
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
|
||||
Reference in New Issue
Block a user