language: ruby
rvm: 
  - 2.2
services:
  - postgresql
before_script:
  - cp config/database.yml.travis config/database.yml
script:
  - rails db:setup

language: ruby
rvm: 
  - 2.2
services:
  - postgresql
before_script:
  - cp config/database.yml.travis config/database.yml
script:
  - bundle exec rake db:setup

Change script to bundle exec rake instead of rails
Change script to bundle exec rake instead of rails
