Fixed issue with JRuby sqlite adapter in ActiveRecord 4