diff --git a/README.md b/README.md index cc62cdaa..45f99013 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,14 @@ To **annotate** a service, navigate to the services page from the top-right menu For a demonstration of how annotations work, feel free to [inspect the video attached to this PR](https://github.com/tosdr/edit.tosdr.org/pull/1116). +### Resetting the database + +To reset the database, add a line `command: sleep 6000` for phoenix in the docker-compose.yml, then run `docker compose up` and then you can: +```sh +docker exec -it edittosdrorg-web-1 /bin/bash +root@c8d0c53945a9:/usr/src/edit.tosdr.org# bundle exec rails db:reset +``` + ### Hypothesis installation - part 1 H is the Hypothesis web service and api. diff --git a/config/database.yml b/config/database.yml index cfddc063..ea8cdfdf 100644 --- a/config/database.yml +++ b/config/database.yml @@ -26,7 +26,7 @@ default: &default development: <<: *default - database: postgres + database: phoenix_development # The specified database role being used to connect to postgres. # To create additional roles in postgres see `$ createuser --help`.