Skip to content
Merged
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
@@ -1,4 +1,6 @@
class Event < ApplicationRecord
self.ignored_columns += %w[coach_description]

include DateTimeConcerns
include Listable
include Invitable
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
6 changes: 6 additions & 0 deletions spec/models/event_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,10 @@
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
Loading