mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-11 09:54:21 +01:00
added separate database field for reviews
This commit is contained in:
parent
7ebf25320b
commit
77b6c931ca
5 changed files with 40 additions and 7 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue