From 2718ccca3ace9caaa2f91e79ed98afae389117b8 Mon Sep 17 00:00:00 2001 From: marco panzeri Date: Thu, 22 Nov 2018 12:45:35 +0100 Subject: [PATCH] UPDATE documentation --- README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 37568aac..cd13db3c 100644 --- a/README.md +++ b/README.md @@ -595,17 +595,26 @@ To change appereance and behaviour of the page add your styles to `app/assets/st --- # Field settings and field groups - + ## Orphans -Sometime playing with Rails console you might end up creating orphans, which basically are components without a field setting parent. They might cause errors in some queries and they hard to track down. - -To avoid the problem run the following command from your shell: +Sometime playing with Rails console you might end up creating orphans, which basically are children of a parent that doesn't exist anymore. They might cause errors in some queries and they are hard to track down. +To make sure you haven't any orphan run the following commands from your shell: + ```bash rails binda:remove_orphan_fields +rails binda:remove_orphan_components +rails binda:remote_orphan_boards ``` +## Missing Field instances + +It might happen that a board or component doesn't have a field even though a field setting exists. This might be caused by an improper use of the rails console. If you're paranoid about it run the following command: + +```bash +rails binda:create_missing_field_instances +``` ---