Multple sqlite connections from single rails application

Please help to work out solution for the following task :
There are several users of my application and I want to allow each one
to have personal sqlite database. It’s going to be very useful for me
when all user’s data incapsulated in one single file. All users can be
logged-in at one time. Is it possible to implement it with ruby on
rails? If so what is the best way to implement it? May be there were
similar tasks requiring different ActiveRecord behavior based on user
session data?

Already found solution by myself
http://wiki.rubyonrails.com/rails/pages/HowtoUseMultipleDatabases