2013-04-05 00:29:46 -04:00
|
|
|
module Jobs
|
2013-05-08 01:20:38 -04:00
|
|
|
# various consistency checks
|
2013-04-05 00:29:46 -04:00
|
|
|
class EnsureDbConsistency < Jobs::Base
|
|
|
|
def execute(args)
|
|
|
|
TopicUser.ensure_consistency!
|
2013-04-05 02:43:48 -04:00
|
|
|
UserVisit.ensure_consistency!
|
2013-05-08 01:20:38 -04:00
|
|
|
Group.refresh_automatic_groups!
|
2013-05-16 03:50:14 -04:00
|
|
|
Notification.ensure_consistency!
|
2013-07-17 02:40:15 -04:00
|
|
|
UserAction.ensure_consistency!
|
2013-04-05 00:29:46 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|