2016-06-09 12:39:16 +00:00
|
|
|
# rubocop:disable all
|
2015-02-23 01:31:12 +00:00
|
|
|
class SetMissingLastActivityAt < ActiveRecord::Migration
|
|
|
|
def up
|
|
|
|
execute "UPDATE projects SET last_activity_at = updated_at WHERE last_activity_at IS NULL"
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
end
|
|
|
|
end
|