Sha256: 931e8ac0f8046605b87c3475d4ba6c975c983f917376151d6a4b5529d13d7e8f

Contents?: true

Size: 377 Bytes

Versions: 47

Compression:

Stored size: 377 Bytes

Contents

class AddIndicesForBurnDownChart < ActiveRecord::Migration
  def self.up
    add_index :tasks, :parent_id
    add_index :estimates, [:task_id, :created_at]
    add_index :works, [:task_id, :completed_at]
  end

  def self.down
    remove_index :works, [:task_id, :completed_at]
    remove_index :estimates, [:task_id, :created_at]
    remove_index :tasks, :parent_id
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
backlog-0.37.2 db/migrate/023_add_indices_for_burn_down_chart.rb
backlog-0.37.1 db/migrate/023_add_indices_for_burn_down_chart.rb
backlog-0.36.2 db/migrate/023_add_indices_for_burn_down_chart.rb
backlog-0.14.3 db/migrate/023_add_indices_for_burn_down_chart.rb
backlog-0.14.4 db/migrate/023_add_indices_for_burn_down_chart.rb
backlog-0.15.0 db/migrate/023_add_indices_for_burn_down_chart.rb
backlog-0.16.0 db/migrate/023_add_indices_for_burn_down_chart.rb
backlog-0.15.1 db/migrate/023_add_indices_for_burn_down_chart.rb
backlog-0.17.0 db/migrate/023_add_indices_for_burn_down_chart.rb
backlog-0.17.2 db/migrate/023_add_indices_for_burn_down_chart.rb
backlog-0.17.1 db/migrate/023_add_indices_for_burn_down_chart.rb
backlog-0.17.3 db/migrate/023_add_indices_for_burn_down_chart.rb
backlog-0.17.4 db/migrate/023_add_indices_for_burn_down_chart.rb
backlog-0.17.5 db/migrate/023_add_indices_for_burn_down_chart.rb
backlog-0.18.0 db/migrate/023_add_indices_for_burn_down_chart.rb
backlog-0.17.6 db/migrate/023_add_indices_for_burn_down_chart.rb
backlog-0.19.0 db/migrate/023_add_indices_for_burn_down_chart.rb
backlog-0.20.0 db/migrate/023_add_indices_for_burn_down_chart.rb
backlog-0.20.1 db/migrate/023_add_indices_for_burn_down_chart.rb
backlog-0.21.0 db/migrate/023_add_indices_for_burn_down_chart.rb