load the schema into the correct db

This commit is contained in:
Renée Hendricksen 2016-08-08 22:00:20 -04:00
parent d0b5793b36
commit cef7285621

View File

@ -6,7 +6,7 @@ namespace :db do
sh "createdb travis_#{env}" rescue nil
sh "createdb travis_logs_#{env}" rescue nil
sh "psql -q travis_#{env} < #{Gem.loaded_specs['travis-migrations'].full_gem_path}/db/structure.sql"
sh "psql -q travis_#{env} < #{Gem.loaded_specs['travis-migrations'].full_gem_path}/db/travis_logs_structure.sql"
sh "psql -q travis_logs_#{env} < #{Gem.loaded_specs['travis-migrations'].full_gem_path}/db/travis_logs_structure.sql"
end
end
end