Sha256: 7f150890c02787ce9d1e7ddac04444395d290c5d18a4900f018eafd1befc6687

Contents?: true

Size: 343 Bytes

Versions: 113

Compression:

Stored size: 343 Bytes

Contents

class AddMoreLockIndexes < ActiveRecord::Migration[4.2]
  def change
    add_index(:foreman_tasks_tasks, [:id, :state],
              :name => 'index_foreman_tasks_id_state')
    add_index(:foreman_tasks_locks, [:name, :resource_type, :resource_id],
              :name => 'index_foreman_tasks_locks_name_resource_type_resource_id')
  end
end

Version data entries

113 entries across 113 versions & 1 rubygems

Version Path
foreman-tasks-10.0.2 db/migrate/20160920151810_add_more_lock_indexes.rb
foreman-tasks-10.0.1 db/migrate/20160920151810_add_more_lock_indexes.rb
foreman-tasks-10.0.0 db/migrate/20160920151810_add_more_lock_indexes.rb
foreman-tasks-9.2.3 db/migrate/20160920151810_add_more_lock_indexes.rb
foreman-tasks-9.2.2 db/migrate/20160920151810_add_more_lock_indexes.rb
foreman-tasks-9.2.1 db/migrate/20160920151810_add_more_lock_indexes.rb
foreman-tasks-9.2.0 db/migrate/20160920151810_add_more_lock_indexes.rb
foreman-tasks-9.1.1 db/migrate/20160920151810_add_more_lock_indexes.rb
foreman-tasks-9.0.4 db/migrate/20160920151810_add_more_lock_indexes.rb
foreman-tasks-9.1.0 db/migrate/20160920151810_add_more_lock_indexes.rb
foreman-tasks-9.0.2 db/migrate/20160920151810_add_more_lock_indexes.rb
foreman-tasks-9.0.1 db/migrate/20160920151810_add_more_lock_indexes.rb
foreman-tasks-8.3.3 db/migrate/20160920151810_add_more_lock_indexes.rb
foreman-tasks-9.0.0 db/migrate/20160920151810_add_more_lock_indexes.rb
foreman-tasks-8.2.1 db/migrate/20160920151810_add_more_lock_indexes.rb
foreman-tasks-8.1.4 db/migrate/20160920151810_add_more_lock_indexes.rb
foreman-tasks-8.3.2 db/migrate/20160920151810_add_more_lock_indexes.rb
foreman-tasks-8.3.1 db/migrate/20160920151810_add_more_lock_indexes.rb
foreman-tasks-8.1.3 db/migrate/20160920151810_add_more_lock_indexes.rb
foreman-tasks-8.3.0 db/migrate/20160920151810_add_more_lock_indexes.rb