Skip to content

Drop scratch_enabled column from schools - #1050

Merged
jamiebenstead merged 1 commit into
mainfrom
1882-remove-scratch_enabled-column-from-schools
Oct 7, 2026
Merged

jamiebenstead merged 1 commit into
mainfrom
1882-remove-scratch_enabled-column-from-schools

Conversation

@jamiebenstead

Copy link
Copy Markdown
Contributor

Copilot AI balanced review requested due to automatic review settings October 7, 2026 13:24
@cla-bot cla-bot Bot added the cla-signed label Oct 7, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The migration is reversible, schema changes are consistent, and no remaining references exist.

Review effort: Balanced
Findings: None

What changed in this PR

Removes the obsolete scratch_enabled field from schools.

Changes:

  • Adds a reversible migration removing the column.
  • Updates the schema and cleans up School.ignored_columns.
File Description
app/​models/​school.rb Removes the obsolete ignored-column entry.
db/​migrate/​20261007131211_remove_scratch_enabled_from_schools.rb Drops the column.
db/​schema.rb Records the updated schema.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

Test coverage

93.86% line coverage reported by SimpleCov.
Run: https://github.com/RaspberryPiFoundation/editor-api/actions/runs/37628186352

@raspberrypiherokubot
raspberrypiherokubot temporarily deployed to editor-api-p-1882-remov-qvt40s October 7, 2026 13:28 Inactive
@jamiebenstead
jamiebenstead merged commit 09656ad into main Oct 7, 2026
10 checks passed
@jamiebenstead
jamiebenstead deleted the 1882-remove-scratch_enabled-column-from-schools branch October 7, 2026 14:11

This branch was previously deployed

1 inactive deployment
editor-api-p-1882-remov-qvt40s — f9ac0f5c Deployed Oct 7, 2026 by raspberrypiherokubot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants