2a34255e0b
Co-authored-by: Subin <subinthattaparambil@gmail.com> Co-authored-by: Manoj <manojmj92@gmail.com> Co-authored-by: Nithin <webofnithin@gmail.com>
8 lines
264 B
Ruby
8 lines
264 B
Ruby
class RoundRobin < ActiveRecord::Migration[5.0]
|
|
def change
|
|
InboxMember.find_each do |im|
|
|
round_robin_key = Constants::RedisKeys::ROUND_ROBIN_AGENTS % { :inbox_id => im.inbox_id }
|
|
Redis::Alfred.lpush(round_robin_key, im.user_id)
|
|
end
|
|
end
|
|
end
|