migrate the kobolds from user setting to account
parent
40debd9f80
commit
66286178ad
|
@ -0,0 +1,10 @@
|
|||
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
|
||||
account.save
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue