2007-03-25 21:11:46 +04:00
|
|
|
class AddChangesetCommitDate < ActiveRecord::Migration
|
|
|
|
def self.up
|
2007-03-26 20:41:54 +04:00
|
|
|
add_column :changesets, :commit_date, :date
|
2007-03-25 21:11:46 +04:00
|
|
|
Changeset.update_all "commit_date = committed_on"
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
remove_column :changesets, :commit_date
|
|
|
|
end
|
|
|
|
end
|