mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-19 08:40:12 +01:00
11 lines
297 B
Ruby
11 lines
297 B
Ruby
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
|