Binding interface for bank statements

This commit is contained in:
Martin Lensment 2015-04-15 11:32:51 +03:00
parent 2dfa65645b
commit 851e5368eb
15 changed files with 113 additions and 26 deletions

View file

@ -99,6 +99,12 @@ namespace :import do
x.save(validate: false)
end
Registrar.all.each do |x|
next if x.cash_account
x.accounts.create(account_type: Account::CASH)
x.save(validate: false)
end
puts "-----> Imported #{count} new registrars in #{(Time.zone.now.to_f - start).round(2)} seconds"
end