Skip to content

chore(members): drop the dead unsubscribed column - #5

Closed
mroderick wants to merge 1 commit into
chore/ignore-dead-unsubscribed-columnfrom
chore/drop-unsubscribed-column
Closed

mroderick wants to merge 1 commit into
chore/ignore-dead-unsubscribed-columnfrom
chore/drop-unsubscribed-column

Conversation

@mroderick

Copy link
Copy Markdown
Owner

Problem

Step 2 of codebar#3007: drop the dead members.unsubscribed column. Step 1 (ignored_columns) is in codebar#3013.

Change

safety_assured { remove_column :members, :unsubscribed, :boolean }, schema regenerated, and a spec pins that the column is gone from the database.

Merge only after codebar#3013 has deployed to production: old releases name the column in their member SELECT list, and dropping it while they still serve would fail every member query during the Heroku preboot switch. After codebar#3013 merges and its branch is deleted, retarget this PR at master.

Review notes

Step 2 of codebar#3007. The members.unsubscribed boolean has been dead since 2014 and is now removed from the schema, with the absence pinned in the member spec. The column held 84 true values from 2013-2014 unsubscribe clicks; per codebar#3007 the drop changes no subscription state.

Merge only after the ignored_columns change has deployed: old releases name the column in their member SELECT list, built from the schema cache at boot, and dropping it while they still serve would fail every member query during the Heroku preboot switch.
@mroderick

Copy link
Copy Markdown
Owner Author

Superseded by codebar#3014: the stacked PR should target the upstream repository.

@mroderick mroderick closed this Oct 12, 2026
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