From 0af64470076fc985a0fcf93075b2d5c1d21c6112 Mon Sep 17 00:00:00 2001 From: Morgan Roderick Date: Tue, 13 Oct 2026 16:57:25 +0200 Subject: [PATCH 1/2] chore(workshops): drop the dead sign_up_url column --- app/models/workshop.rb | 2 -- .../20261013110000_remove_sign_up_url_from_workshops.rb | 5 +++++ db/schema.rb | 3 +-- 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 db/migrate/20261013110000_remove_sign_up_url_from_workshops.rb diff --git a/app/models/workshop.rb b/app/models/workshop.rb index 87056605c..370159504 100644 --- a/app/models/workshop.rb +++ b/app/models/workshop.rb @@ -1,6 +1,4 @@ class Workshop < ApplicationRecord - self.ignored_columns += %w[sign_up_url] - include DateTimeConcerns include Invitable include CheckInable diff --git a/db/migrate/20261013110000_remove_sign_up_url_from_workshops.rb b/db/migrate/20261013110000_remove_sign_up_url_from_workshops.rb new file mode 100644 index 000000000..4e28c33d6 --- /dev/null +++ b/db/migrate/20261013110000_remove_sign_up_url_from_workshops.rb @@ -0,0 +1,5 @@ +class RemoveSignUpUrlFromWorkshops < ActiveRecord::Migration[8.1] + def change + safety_assured { remove_column :workshops, :sign_up_url, :string } + end +end diff --git a/db/schema.rb b/db/schema.rb index 43a25e672..7855250f9 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[8.1].define(version: 2026_10_13_100000) do +ActiveRecord::Schema[8.1].define(version: 2026_10_13_110000) do # These are extensions that must be enabled in order to support this database enable_extension "pg_catalog.plpgsql" @@ -646,7 +646,6 @@ t.boolean "invitable", default: true t.datetime "rsvp_closes_at", precision: nil t.datetime "rsvp_opens_at", precision: nil - t.string "sign_up_url" t.string "slack_channel" t.string "slack_channel_link" t.integer "student_spaces", default: 0 From 829b760dd83976891f3d947e403cc0bd68659995 Mon Sep 17 00:00:00 2001 From: Morgan Roderick Date: Tue, 13 Oct 2026 16:57:31 +0200 Subject: [PATCH 2/2] chore(workshops): drop the transient legacy-column specs --- spec/models/workshop_spec.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/spec/models/workshop_spec.rb b/spec/models/workshop_spec.rb index 5746e75f3..c5078d522 100644 --- a/spec/models/workshop_spec.rb +++ b/spec/models/workshop_spec.rb @@ -415,10 +415,4 @@ expect(workshop.cancellations_open?).to be(false) end end - - describe 'legacy columns' do - it 'does not expose the legacy sign_up_url attribute' do - expect(described_class.new).not_to respond_to(:sign_up_url) - end - end end