TravisCI: fixed Gemfile.lock and Ruby versions
TravisCI: migrate the database before running tests