From 74b4d36a9cc7cbdb36d5ce759cb4e677360fb938 Mon Sep 17 00:00:00 2001 From: Panayotis Matsinopoulos Date: Wed, 18 Oct 2017 13:23:35 +0100 Subject: [PATCH] More accurate steps for preparing the database The existing prepare database instructions were not correct. I have updated them according to what existed in the other document (docs/DEVELOPMENT-ADVANCED.md). --- docs/DEVELOPMENT-OSX-NATIVE.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/DEVELOPMENT-OSX-NATIVE.md b/docs/DEVELOPMENT-OSX-NATIVE.md index abb88cb2aa1..64902ff82dd 100644 --- a/docs/DEVELOPMENT-OSX-NATIVE.md +++ b/docs/DEVELOPMENT-OSX-NATIVE.md @@ -257,10 +257,13 @@ bundle install ### Prepare your database ```sh -rake db:create -rake db:migrate -rake db:test:prepare -rake db:seed_fu +# run this if there was a pre-existing database +bundle exec rake db:drop +RAILS_ENV=test bundle exec rake db:drop + +# time to create the database and run migrations +bundle exec rake db:create db:migrate +RAILS_ENV=test bundle exec rake db:create db:migrate ``` ## Now, test it out!