Class: AddIndexesToDuctworkResults
- Inherits:
-
Ductwork::Migration
- Object
- Ductwork::Migration
- AddIndexesToDuctworkResults
- Defined in:
- lib/generators/ductwork/update/templates/db/add_indexes_to_ductwork_results.rb
Constant Summary
Constants included from Ductwork::MigrationHelper
Ductwork::MigrationHelper::AVAILABILITY_CLAIM_INDEX_NAME, Ductwork::MigrationHelper::AVAILABILITY_CLAIM_INDEX_NAMES, Ductwork::MigrationHelper::AVAILABILITY_CLAIM_INDEX_NAME_V2
Instance Method Summary collapse
Methods included from Ductwork::MigrationHelper
#add_availability_claim_index, #add_index_online, #belongs_to, #create_ductwork_table, #drop_invalid_index, #ensure_ddl_transaction_disabled!, #mysql?, #postgresql?, #remove_availability_claim_index, #remove_index_online, #swap_availability_claim_index, #uuid_column_type
Instance Method Details
#change ⇒ Object
4 5 6 |
# File 'lib/generators/ductwork/update/templates/db/add_indexes_to_ductwork_results.rb', line 4 def change add_index :ductwork_results, %i[result_type created_at] end |