From 9fb901a383d79f6c633767b4653eb16c5cc6b895 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 15:29:27 +0000 Subject: [PATCH 1/2] Bump rails-erd from 1.7.2 to 2.0.2 Bumps [rails-erd](https://github.com/voormedia/rails-erd) from 1.7.2 to 2.0.2. - [Release notes](https://github.com/voormedia/rails-erd/releases) - [Changelog](https://github.com/voormedia/rails-erd/blob/master/CHANGES.md) - [Commits](https://github.com/voormedia/rails-erd/commits/v2.0.2) --- updated-dependencies: - dependency-name: rails-erd dependency-version: 2.0.2 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index bfaa05bc1..1301985ae 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -322,6 +322,7 @@ GEM stringio time uri + ostruct (0.6.3) paper_trail (17.0.0) activerecord (>= 7.1) request_store (~> 1.4) @@ -395,11 +396,11 @@ GEM activesupport (>= 5.0.0) minitest nokogiri (>= 1.6) - rails-erd (1.7.2) - activerecord (>= 4.2) - activesupport (>= 4.2) + rails-erd (2.0.2) + activerecord (>= 7.0) + activesupport (>= 7.0) choice (~> 0.2.0) - ruby-graphviz (~> 1.2) + ostruct rails-html-sanitizer (1.7.0) loofah (~> 2.25) nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) @@ -496,8 +497,6 @@ GEM lint_roller (~> 1.1) rubocop (~> 1.72, >= 1.72.1) rubocop-rspec (~> 3.5) - ruby-graphviz (1.2.5) - rexml ruby-lsp (0.26.9) language_server-protocol (~> 3.17.0) prism (>= 1.2, < 2.0) From c9b97a7f443009cee89707bd92361dae6b53e581 Mon Sep 17 00:00:00 2001 From: Chris Zetter <253059100+zetter-rpf@users.noreply.github.com> Date: Tue, 30 Jun 2026 10:11:27 +0100 Subject: [PATCH 2/2] Remove rails erd The newer version requires some changes to keep pdfs working I asked the team and no one is using it so remove, we can add it again if we have a need I did look at the generated output and it did look overly complex - I think a simplified curated diagram might be more useful --- Gemfile | 1 - Gemfile.lock | 8 -------- README.md | 14 -------------- 3 files changed, 23 deletions(-) diff --git a/Gemfile b/Gemfile index c9022511d..2107abdd9 100644 --- a/Gemfile +++ b/Gemfile @@ -73,7 +73,6 @@ group :development, :test do end group :development do - gem 'rails-erd' gem 'ruby-lsp', require: false gem 'ruby-lsp-rspec', '~> 0.1.29', require: false end diff --git a/Gemfile.lock b/Gemfile.lock index 1301985ae..0cf23cb47 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -137,7 +137,6 @@ GEM regexp_parser (>= 1.5, < 3.0) xpath (~> 3.2) childprocess (4.1.0) - choice (0.2.0) climate_control (1.2.0) coderay (1.1.3) concurrent-ruby (1.3.7) @@ -322,7 +321,6 @@ GEM stringio time uri - ostruct (0.6.3) paper_trail (17.0.0) activerecord (>= 7.1) request_store (~> 1.4) @@ -396,11 +394,6 @@ GEM activesupport (>= 5.0.0) minitest nokogiri (>= 1.6) - rails-erd (2.0.2) - activerecord (>= 7.0) - activesupport (>= 7.0) - choice (~> 0.2.0) - ostruct rails-html-sanitizer (1.7.0) loofah (~> 2.25) nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) @@ -622,7 +615,6 @@ DEPENDENCIES rack-cors rack_content_type_default (~> 1.1) rails (~> 8.1.3) - rails-erd rails_semantic_logger (~> 4.20) rspec rspec-rails diff --git a/README.md b/README.md index 379153be8..926511633 100644 --- a/README.md +++ b/README.md @@ -151,20 +151,6 @@ Handled in `config/initializers/cors.rb`. This API receives push event data from the [Raspberry Pi Learning](https://github.com/raspberrypilearning) organisation via webhooks. This data is used to create or update code projects related to the [Code Club Projects Site](https://projects.raspberrypi.org), and is processed using the `github_webhooks` gem in the `github_webhooks_controller`. For development purposes, these webhooks are mediated locally through `smee`, which runs in a Docker container. -### Database Structure - -Once you have completed the initial setup and have everything running in a container, you can generate an Entity-Relationship Diagram (ERD) to help you to understand the database structure. In order to do this, start things up as usual in one terminal: - -`docker-compose up` - -then in a second terminal, create the ERD using: - -`docker-compose exec api bundle exec erd` - -then copy the created ERD out of the container with: - -`docker cp "$(docker-compose ps -q api)":/app/EditorAPI-ERD.pdf .` - ## Usage ### Projects