blob: 1542bdb5ee7547c6943cad0e36399123c0685a5f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
class BackfillCustomEmojiOwnership < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
def up
site_contact = Account.site_contact
CustomEmoji.local.in_batches.update_all(account_id: site_contact.id)
end
def down
nil
end
end
|