Capistrano task to create postgres databases.

namespace :deploy do

desc “Create database”
task :create_database do
on roles :db do
execute “createdb #{fetch(:application)}_production”
end
end

Leave a Reply

Your email address will not be published. Required fields are marked *