added separate database field for reviews

This commit is contained in:
sfischme 2011-09-15 20:52:24 -04:00
parent 7ebf25320b
commit 77b6c931ca
5 changed files with 40 additions and 7 deletions

View file

@ -0,0 +1,9 @@
class AddLastReviewedToProject < ActiveRecord::Migration
def self.up
add_column :projects, :last_reviewed, :timestamp
execute 'update projects set last_reviewed = created_at where last_reviewed IS NULL'
end
def self.down
remove_column :projects, :last_reviewed
end
end