Sha256: 89b822470d7ff7fd742d9b102acfd2b7602b1480bdeaf8b50bbffa49b48349f0
Contents?: true
Size: 396 Bytes
Versions: 1
Compression:
Stored size: 396 Bytes
Contents
class CreateIndexesOnHasStatesStates < ActiveRecord::Migration[8.0] def change change_table :has_states_states do |t| t.index %i[stateable_id state_type] t.index %i[stateable_id state_type status] t.index %i[stateable_id state_type created_at] t.index %i[stateable_id state_type status created_at] t.index %i[stateable_type stateable_id] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stateful_models-0.0.3 | spec/generators/tmp/db/migrate/20250114180401_create_indexes_on_has_states_states.rb |