To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / db / migrate / 036_add_changeset_commit_date.rb @ 443:350acce374a2

History | View | Annotate | Download (248 Bytes)

1
class AddChangesetCommitDate < ActiveRecord::Migration
2
  def self.up
3
    add_column :changesets, :commit_date, :date
4
    Changeset.update_all "commit_date = committed_on"
5
  end
6

    
7
  def self.down
8
    remove_column :changesets, :commit_date
9
  end
10
end