language: ruby
rvm:
  - 2.3.1

services:
  - postgresql

before_script:
  - RAILS_ENV=test bundle exec rake db:migrate --trace

language: ruby
rvm:
  - 2.3.1

services:
  - postgresql

before_script:
  - psql -c 'create database travis_ci_test;' -U postgres
  - RAILS_ENV=test bundle exec rake db:migrate --trace

Create the db before running the migration
Create the db before running the migration
