blob: c4d305e6b9fe6a67ca46c9d6a18ed59a3c07d734 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
class MigrateHiddenToHideProfile < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
def up
Account.local.find_each do |account|
next unless account&.user
account.user.settings.hide_public_profile = account.hidden || false
account.hidden = false
end
end
end
|