added ruby version to gemfile and made change to mongoid.yml