magic_recipes 0.0.20 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/magic_recipes/postgresql.rb +1 -2
- metadata +1 -1
@@ -49,8 +49,7 @@ module MagicRecipes
|
|
49
49
|
|
50
50
|
desc "Create a database for this application."
|
51
51
|
task :create_database, roles: :db, only: {primary: true} do
|
52
|
-
#
|
53
|
-
run %Q{#{sudo} -u postgres psql -c "create user --createdb #{postgresql_user} with password '#{postgresql_password}';"}
|
52
|
+
run %Q{#{sudo} -u postgres psql -c "create user #{postgresql_user} with password '#{postgresql_password}';"}
|
54
53
|
run %Q{#{sudo} -u postgres psql -c "create database #{postgresql_database} owner #{postgresql_user};"}
|
55
54
|
end
|
56
55
|
after "deploy:setup", "postgresql:create_database"
|