Merge pull request #1161 from Ana06/room-event-schedule

Delete EventSchedules when a Room is deleted
This commit is contained in:
Stella Rouzi 2016-09-06 12:47:51 +03:00 committed by GitHub
commit c48c8afa51
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ describe Room do
describe 'association' do
it { should belong_to(:venue) }
it { should have_many(:event_schedules).dependent(:nullify) }
it { should have_many(:event_schedules).dependent(:destroy) }
end
describe 'callback' do