add contact is_verified flag to precompute filterable field
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class AddIsVerifiedToContacts < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
add_column :contacts, :is_verified, :boolean, default: false, null: false
|
||||
add_index :contacts, :is_verified
|
||||
add_index :contacts, [:account_id, :is_verified], name: 'index_contacts_on_account_id_and_is_verified'
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user