lib/magic_recipes/postgresql.rb in magic_recipes-0.0.20 vs lib/magic_recipes/postgresql.rb in magic_recipes-0.0.21

- old
+ new

@@ -47,11 +47,10 @@ end after "deploy:install", "postgresql:install" desc "Create a database for this application." task :create_database, roles: :db, only: {primary: true} do - # with --createdb for rake commands - run %Q{#{sudo} -u postgres psql -c "create user --createdb #{postgresql_user} with password '#{postgresql_password}';"} + run %Q{#{sudo} -u postgres psql -c "create user #{postgresql_user} with password '#{postgresql_password}';"} run %Q{#{sudo} -u postgres psql -c "create database #{postgresql_database} owner #{postgresql_user};"} end after "deploy:setup", "postgresql:create_database" desc "Generate the database.yml configuration file." \ No newline at end of file