run migrations before tests

This commit is contained in:
Marc Anguera Insa
2014-12-04 01:00:57 +01:00
parent eb915ecde0
commit bf5201b11c
+4 -2
View File
@@ -1,5 +1,7 @@
language: ruby
rvm: 2.1
rvm:
- 2.1
env: DATABASE_URL=postgres://postgres@localhost/timeoverflow_test
before_script:
- psql -c 'create database timeoverflow_test;' -U postgres
- psql -c 'create database timeoverflow_test;' -U postgres
- RAILS_ENV=test bundle exec rake db:migrate