Skip to content

chore(project): drop unused project_categories column (follow-up to #360)#549

Draft
dhamariT wants to merge 1 commit into
hackclub:mainfrom
dhamariT:chore/drop-project-categories
Draft

chore(project): drop unused project_categories column (follow-up to #360)#549
dhamariT wants to merge 1 commit into
hackclub:mainfrom
dhamariT:chore/drop-project-categories

Conversation

@dhamariT

Copy link
Copy Markdown
Collaborator

Follow-up to #360. Splitting the destructive migration out so the code ships first.

#360 removes every code reference to project_categories (the validation, the Gorse payloads, the admin and project views) but deliberately leaves the column in the database. This PR is the second half of that expand/contract: it drops the now-unused column.

Order matters. This must merge only after #360 is merged and deployed. Until #360 is live, main still reads project_categories at runtime (the project validation calls it on every save), so dropping the column before that would break project saves. After #360 lands, rebase this on main and merge.

The migration is irreversible in practice. remove_column is reversible at the schema level so a rollback re-adds the column definition, but the data in it is gone for good.

I left this as a draft on purpose so nobody merges it ahead of #360.

Follow-up to hackclub#360. That PR removes every code reference to
project_categories (validation, Gorse payloads, admin/project views)
but intentionally leaves the column in place. This migration drops the
now-unused column.

Must merge after hackclub#360 is deployed. Until hackclub#360 lands, main still reads
project_categories at runtime, so dropping the column before then would
break project saves.
@dhamariT dhamariT force-pushed the chore/drop-project-categories branch from c5b8a6f to 4b77bfb Compare June 15, 2026 14:55
dhamariT added a commit to Nullskulls/stardance that referenced this pull request Jun 15, 2026
Resolves the app/models/project.rb conflict from main's hardware_stage
feature. Keeps the hardware_stage validations from main and drops the
validate :validate_project_categories line (its method was already
removed on this branch; project_categories is going away in hackclub#549).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant