public
Created — forked from tehpeh/tddium.rake

Installing hstore extension in Postgresql 9.1 database for Tddium

  • Download Gist
tddium.rake
Ruby
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["db:create"].invoke
 
Kernel.system("psql #{ENV['TDDIUM_DB_NAME']} -c 'CREATE EXTENSION hstore;'")
 
Rake::Task["tddium:default_db_hook"].invoke
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.