20180910104020_add_closed_columns_to_epic.rb 346 Bytes
Newer Older
1
# frozen_string_literal: true
2
class AddClosedColumnsToEpic < ActiveRecord::Migration[4.2]
3 4 5 6 7 8 9 10 11 12 13 14
  DOWNTIME = false

  def up
    add_reference :epics, :closed_by, index: true
    add_column :epics, :closed_at, :datetime_with_timezone
  end

  def down
    remove_reference :epics, :closed_by, index: true
    remove_column :epics, :closed_at
  end
end