036_add_changeset_commit_date.rb 253 Bytes
Newer Older
1
class AddChangesetCommitDate < ActiveRecord::Migration[4.2]
2
  def self.up
3
    add_column :changesets, :commit_date, :date
4 5 6 7 8 9 10
    Changeset.update_all "commit_date = committed_on"
  end

  def self.down
    remove_column :changesets, :commit_date
  end
end