Also, clean up directions for creating w/ postgres so you can actually use rake db* commands properly.
Signed-off-by: Jason Guiditta jason.guiditta@gmail.com --- src/config/database.yml | 24 +++++++++--------------- 1 files changed, 9 insertions(+), 15 deletions(-)
diff --git a/src/config/database.yml b/src/config/database.yml index 5de15c9..70771e1 100644 --- a/src/config/database.yml +++ b/src/config/database.yml @@ -5,14 +5,8 @@ # sudo /sbin/service postgresql initdb # sudo /sbin/service postgresql start # sudo su - postgres -# $ psql ovirt -# $-# CREATE USER ovirt WITH PASSWORD 'v23zj59an'; -# $-# CREATE DATABASE ovirt_development; -# $-# GRANT ALL PRIVILEGES ON DATABASE ovirt_development to ovirt; -# $-# CREATE DATABASE ovirt_test; -# $-# GRANT ALL PRIVILEGES ON DATABASE ovirt_test to ovirt; -# $-# CREATE DATABASE ovirt; -# $-# GRANT ALL PRIVILEGES ON DATABASE ovirt to ovirt; +# $ psql +# $-# CREATE USER dcloud WITH PASSWORD 'v23zj59an' CREATEDB; # $-# \q # $ exit # @@ -23,7 +17,7 @@ # rake db:migrate # rake db:test:prepare # -# And when there are changes to the database, simple run: +# And when there are changes to the database, simply run: # # rake db:migrate # rake db:test:prepare @@ -36,23 +30,23 @@
development: adapter: postgresql - database: ovirt_development - username: ovirt + database: dcloud_development + username: dcloud password: v23zj59an host: localhost
# Warning: The database defined as 'test' will be erased and -# re-generated from your development database when you run 'rake'. +# re-generated from your development database when you run 'rake test'. # Do not set this db to the same as development or production. test: adapter: postgresql - database: ovirt_test + database: dcloud_test username: postgres host: localhost
production: adapter: postgresql - database: ovirt - username: ovirt + database: dcloud + username: dcloud password: v23zj59an host: localhost
deltacloud-devel@lists.fedorahosted.org