You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mermaid files in this directory are [Class Diagrams](https://mermaid.js.org/syntax/classDiagram.html) for each of the apps we run that make up the main GOV.UK Forms system.
We need the latest version in the repo, as at the time of writing the most recent release does not include [Mermaid support](https://github.com/voormedia/rails-erd/commit/22cfc76098e222b7c211f0369e80580aeaa22c70).
16
+
17
+
> ⚠️ Note: Do not commit the gem into the app repos.
18
+
19
+
Run:
20
+
21
+
```shell
22
+
generator="mermaid" rake erd
23
+
```
24
+
25
+
This will create a file called `erd.mmd` in the root of the application.
26
+
27
+
## Update the diagram
28
+
29
+
1. Open the file in an editor and copy the contents (all of the `classDiagram` block).
30
+
2. Paste the contents into the corresponding diagram file, replacing everything inside the "mermaid" block:
0 commit comments