2016-06-09 08:39:16 -04:00
|
|
|
# rubocop:disable all
|
2015-02-22 20:31:12 -05: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
|