Sha256: 0ae80ffbf602d0bea8d0892b255f655b5dc0b40ec19428c9aa07990ac9d0ad6f

Contents?: true

Size: 319 Bytes

Versions: 32

Compression:

Stored size: 319 Bytes

Contents

class ImproveTasksIndexing < ActiveRecord::Migration[5.0]
  def change
    # index_active_tasks should superseed this, but for some reason
    # MySQL tend to chose the wrong index. This one while wasting a bit of memory
    # makes it do a better choice.
    add_index :tasks, %i(stack_id allow_concurrency)
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

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