diff --git a/app/models/meeting.rb b/app/models/meeting.rb index 7e758ace4..eafb163f2 100644 --- a/app/models/meeting.rb +++ b/app/models/meeting.rb @@ -1,4 +1,6 @@ class Meeting < ApplicationRecord + self.ignored_columns += %w[invites_sent] + include DateTimeConcerns include Listable include Invitable diff --git a/spec/models/meeting_spec.rb b/spec/models/meeting_spec.rb index 202549865..9de2794cb 100644 --- a/spec/models/meeting_spec.rb +++ b/spec/models/meeting_spec.rb @@ -81,4 +81,10 @@ end end end + + describe 'legacy columns' do + it 'does not expose the legacy invites_sent attribute' do + expect(described_class.new).not_to respond_to(:invites_sent) + end + end end