Class: AddIndexesToDuctworkResults

Inherits:
Ductwork::Migration show all
Defined in:
lib/generators/ductwork/update/templates/db/add_indexes_to_ductwork_results.rb

Instance Method Summary collapse

Methods included from Ductwork::MigrationHelper

#belongs_to, #create_ductwork_table, #mysql?, #postgresql?, #uuid_column_type

Instance Method Details

#changeObject



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