before_script: cp config/database.yml.example config/database.yml && bundle exec rake db:create
script: bundle exec rake db:migrate db:test:prepare default
rvm:
  - ree

before_script: cp config/database.yml.example config/database.yml && bundle exec rake db:create db:migrate db:test:prepare
rvm:
  - ree

Move entire setup into before_script
Move entire setup into before_script
