lib/magic_recipes/postgresql.rb in magic_recipes-0.0.23 vs lib/magic_recipes/postgresql.rb in magic_recipes-0.0.24

- old
+ new

@@ -57,10 +57,10 @@ task :create_database, roles: :db, only: {primary: true} do #run %Q{#{sudo} -u postgres psql -c "create user #{postgresql_user} with password '#{postgresql_password}';"} # make a superuser .. to be able to install extensions like hstore run %Q{#{sudo} -u postgres psql -c "CREATE ROLE #{postgresql_user} WITH SUPERUSER CREATEDB CREATEROLE LOGIN ENCRYPTED PASSWORD '#{postgresql_password}';"} #run %Q{#{sudo} -u postgres psql -c "create database #{postgresql_database} owner #{postgresql_user};"} - run %Q{#{sudo} -u postgres psql -c "CREATE DATABASE #{postgresql_database} WITH OWNER #{postgresql_user} ENCODING 'UTF8';"} + run %Q{#{sudo} -u postgres psql -c "CREATE DATABASE #{postgresql_database} WITH OWNER #{postgresql_user};"} end after "deploy:setup", "postgresql:create_database" desc "Create a postgres-user for this application." task :create_user, roles: :db, only: {primary: true} do \ No newline at end of file