mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 07:10:12 +01:00
11 lines
302 B
Ruby
11 lines
302 B
Ruby
class AddLastReviewedToProject < ActiveRecord::Migration[5.2]
|
|
|
|
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
|