summaryrefslogtreecommitdiffstats
path: root/db/migrate/036_add_changeset_commit_date.rb
blob: 90ce524667c7fa96add0dd263dfdb819a67ae496 (plain)
1
2
3
4
5
6
7
8
9
10
class AddChangesetCommitDate < ActiveRecord::Migration[4.2]
  def self.up
    add_column :changesets, :commit_date, :date
    Changeset.update_all "commit_date = committed_on"
  end

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