about summary refs log tree commit diff
path: root/db/migrate/20190531082452_move_account_vars_to_users.rb
blob: fea150b787b10d55806dd09675300e953499f56c (plain) (blame)
1
2
3
4
5
class MoveAccountVarsToUsers < ActiveRecord::Migration[5.2]
  def up
    Account.local.find_each { |a| a.user.vars = a.vars; a.user.save }
  end
end