10 lines
257 B
Ruby
10 lines
257 B
Ruby
![]() |
class BackfillAddUnreadCountToChatConversationAccounts < ActiveRecord::Migration[5.2]
|
||
|
disable_ddl_transaction!
|
||
|
|
||
|
def change
|
||
|
ChatConversationAccount.in_batches do |relation|
|
||
|
relation.update_all unread_count: 0
|
||
|
sleep(0.1)
|
||
|
end
|
||
|
end
|
||
|
end
|