Sha256: 1444982508ecf73c9ba755ca9b3d8d7a42847d575edcc7e0b1537b18014cc15f
Contents?: true
Size: 404 Bytes
Versions: 28
Compression:
Stored size: 404 Bytes
Contents
class FixTasksIndexByStatus < ActiveRecord::Migration[5.1] def up remove_index :tasks, name: :index_tasks_by_stack_and_status add_index :tasks, [:stack_id, :status, :type], name: :index_tasks_by_stack_and_status end def down remove_index :tasks, name: :index_tasks_by_stack_and_status add_index :tasks, [:type, :stack_id, :status], name: :index_tasks_by_stack_and_status end end
Version data entries
28 entries across 28 versions & 1 rubygems