Skip to content

Instantly share code, notes, and snippets.

@tddium
Forked from tehpeh/tddium.rake
Created June 27, 2012 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tddium/3006942 to your computer and use it in GitHub Desktop.
Save tddium/3006942 to your computer and use it in GitHub Desktop.
Installing hstore extension in Postgresql 9.1 database for Tddium
# 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
@tmertens
Copy link

Can you guys update this with a proper license? (e.g. MIT)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment