Sha256: c234daa8cc102ac2c8d036af019245ccf72f487fe2075829cbfe032f126a7362
Contents?: true
Size: 541 Bytes
Versions: 17
Compression:
Stored size: 541 Bytes
Contents
class AddCheckedOutToSprintsTasks < ActiveRecord::Migration def up add_column :sprints_tasks, :checked_out_at, :timestamp add_column :sprints_tasks, :checked_out_by_id, :integer execute <<-SQL UPDATE sprints_tasks SET checked_out_at=tasks.checked_out_at, checked_out_by_id=tasks.checked_out_by_id FROM tasks WHERE sprints_tasks.task_id=tasks.id SQL end def down remove_column :sprints_tasks, :checked_out_at remove_column :sprints_tasks, :checked_out_by_id end end
Version data entries
17 entries across 17 versions & 1 rubygems