setting up rails 4 in the Gemfile
adding Gemfile.rails3.2 to the travis-ci test matrix
defining a base query depending on Rails version