Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/models/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ class Event < ApplicationRecord
include CheckInable
include RsvpClosable

self.ignored_columns += [:coach_description]

attr_accessor :local_date, :local_time, :local_end_time

resourcify :permissions, role_cname: 'Permission', role_table_name: :permission
Expand Down
7 changes: 7 additions & 0 deletions db/migrate/20261013152754_remove_coach_description_column.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class RemoveCoachDescriptionColumn < ActiveRecord::Migration[8.1]
def change
safety_assured do
remove_column :events, :coach_description, :text
end
end
end
3 changes: 1 addition & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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_152754) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_catalog.plpgsql"

Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion spec/fabricators/event_fabricator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
ends_at { |attrs| attrs[:date_and_time] + 8.hours }
name Faker::Lorem.sentence
description Faker::Lorem.sentence
coach_description Faker::Lorem.sentence
schedule Faker::Lorem.sentence
venue { Fabricate(:sponsor) }
coach_spaces 2
Expand Down
Loading