Sha256: 92b40398763a1b5513b149e66ecb65459e6308cced52f326ed97c1b8c00e14fa

Contents?: true

Size: 319 Bytes

Versions: 29

Compression:

Stored size: 319 Bytes

Contents

class ReorderActiveTasksIndex < ActiveRecord::Migration[4.2]
  def change
    remove_index :tasks, name: :index_active_tasks
    add_index :tasks, %i(stack_id allow_concurrency status), name: :index_active_tasks
    remove_index :tasks, :stack_id # now useless since `index_active_tasks` starts by `stack_id`
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
shipit-engine-0.39.0 db/migrate/20160526192650_reorder_active_tasks_index.rb
shipit-engine-0.38.0 db/migrate/20160526192650_reorder_active_tasks_index.rb
shipit-engine-0.37.0 db/migrate/20160526192650_reorder_active_tasks_index.rb
shipit-engine-0.36.1 db/migrate/20160526192650_reorder_active_tasks_index.rb
shipit-engine-0.36.0 db/migrate/20160526192650_reorder_active_tasks_index.rb
shipit-engine-0.35.1 db/migrate/20160526192650_reorder_active_tasks_index.rb
shipit-engine-0.35.0 db/migrate/20160526192650_reorder_active_tasks_index.rb
shipit-engine-0.34.0 db/migrate/20160526192650_reorder_active_tasks_index.rb
shipit-engine-0.33.0 db/migrate/20160526192650_reorder_active_tasks_index.rb
shipit-engine-0.32.0 db/migrate/20160526192650_reorder_active_tasks_index.rb
shipit-engine-0.31.0 db/migrate/20160526192650_reorder_active_tasks_index.rb
shipit-engine-0.30.0 db/migrate/20160526192650_reorder_active_tasks_index.rb
shipit-engine-0.29.0 db/migrate/20160526192650_reorder_active_tasks_index.rb
shipit-engine-0.28.1 db/migrate/20160526192650_reorder_active_tasks_index.rb
shipit-engine-0.28.0 db/migrate/20160526192650_reorder_active_tasks_index.rb
shipit-engine-0.27.1 db/migrate/20160526192650_reorder_active_tasks_index.rb
shipit-engine-0.27.0 db/migrate/20160526192650_reorder_active_tasks_index.rb
shipit-engine-0.26.0 db/migrate/20160526192650_reorder_active_tasks_index.rb
shipit-engine-0.25.1 db/migrate/20160526192650_reorder_active_tasks_index.rb
shipit-engine-0.25.0 db/migrate/20160526192650_reorder_active_tasks_index.rb