Sha256: 2e92dcc6ad3e1430c7a69a36a51bf734026718e960ef29bb3f260fa3cb55a2bd

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

class CreateIndexesOnHasStatesStates < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
  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 lib/generators/has_states/install/templates/create_indexes_on_has_states_states.rb.erb