diff --git a/app/models/event.rb b/app/models/event.rb index ee1dc808a..101dcaf33 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -1,6 +1,4 @@ class Event < ApplicationRecord - self.ignored_columns += %w[coach_description] - include DateTimeConcerns include Listable include Invitable diff --git a/db/migrate/20261013120000_remove_coach_description_from_events.rb b/db/migrate/20261013120000_remove_coach_description_from_events.rb new file mode 100644 index 000000000..43e4a886b --- /dev/null +++ b/db/migrate/20261013120000_remove_coach_description_from_events.rb @@ -0,0 +1,5 @@ +class RemoveCoachDescriptionFromEvents < ActiveRecord::Migration[8.1] + def change + safety_assured { remove_column :events, :coach_description, :text } + end +end diff --git a/db/schema.rb b/db/schema.rb index 7855250f9..8f96d3762 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_110000) do +ActiveRecord::Schema[8.1].define(version: 2026_10_13_120000) do # These are extensions that must be enabled in order to support this database enable_extension "pg_catalog.plpgsql" @@ -205,7 +205,6 @@ t.boolean "announce_only" t.string "audience" t.string "check_in_code" - t.text "coach_description" t.string "coach_questionnaire" t.integer "coach_spaces" t.boolean "confirmation_required", default: false diff --git a/spec/models/event_spec.rb b/spec/models/event_spec.rb index 703d16e7c..4043fc7cb 100644 --- a/spec/models/event_spec.rb +++ b/spec/models/event_spec.rb @@ -120,10 +120,4 @@ expect(described_class.single_chapter).not_to include(multi) end end - - describe 'legacy columns' do - it 'does not expose the legacy coach_description attribute' do - expect(described_class.new).not_to respond_to(:coach_description) - end - end end