correct references in kobold migration
parent
7c60955f06
commit
cfd314432d
|
@ -2,8 +2,9 @@ class MigrateUserKoboldsToAccount < ActiveRecord::Migration[5.2]
|
|||
disable_ddl_transaction!
|
||||
def up
|
||||
Account.local.find_each do |account|
|
||||
account.kobold = a.user_is_a_kobold? || false
|
||||
account.gently = a.user_gentlies_kobolds? || false
|
||||
next if account.user.nil?
|
||||
account.kobold = account.user.settings.is_a_kobold? || false
|
||||
account.gently = account.user.settings.gentlies_kobolds? || false
|
||||
account.save
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue