From 6637144baedfed8237b7ed1ffaa8bd2179172f72 Mon Sep 17 00:00:00 2001 From: cryptogopher Date: Sat, 11 Mar 2023 23:24:23 +0100 Subject: [PATCH] Update database configuration steps --- README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 0c578a5..27a382d 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,6 @@ Modify configuration settings below `SETUP` comment appropriately. ## Database - cp -a config/database.yml.dist config/database.yml - -Update database configuration. - Create database user and grant privileges: > mysql -p @@ -26,11 +22,12 @@ Create database user and grant privileges: mysql> grant all privileges on fixinme.* to fixinme@localhost; mysql> flush privileges; -Run database creation task: +Copy config template and update database configuration: - RAILS_ENV="production" bundle exec rake db:create + cp -a config/database.yml.dist config/database.yml -Run migrations ... +Run database creation and migration tasks: + RAILS_ENV="production" bundle exec rake db:create db:migrate ## How to run the test suite: ...