Class: AddIndexesToDuctworkRuns
- Inherits:
-
Ductwork::Migration
- Object
- Ductwork::Migration
- AddIndexesToDuctworkRuns
- Defined in:
- lib/generators/ductwork/update/templates/db/add_indexes_to_ductwork_runs.rb
Instance Method Summary collapse
Methods included from Ductwork::MigrationHelper
#belongs_to, #create_ductwork_table, #mysql?, #postgresql?, #uuid_column_type
Instance Method Details
#change ⇒ Object
4 5 6 7 8 |
# File 'lib/generators/ductwork/update/templates/db/add_indexes_to_ductwork_runs.rb', line 4 def change add_index :ductwork_runs, :started_at add_index :ductwork_runs, %i[pipeline_klass started_at] add_index :ductwork_runs, %i[status started_at] end |