Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Installing Postgres database extensions in Tddium

View tddium.rake
1 2 3 4 5 6 7 8 9 10 11 12
# Copyright (c) 2011, 2012 Solano Labs All Rights Reserved
 
namespace :tddium do
desc "load database extensions"
task :db_hook do
Rake::Task["tddium:default_db_hook"].invoke
 
# There is not yet a way to determine Tddium PG version from environment
contrib = '/usr/share/postgresql/8.4/contrib/hstore.sql'
Kernel.system("psql #{ENV['TDDIUM_DB_NAME']} -f #{contrib}")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.