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