Merge pull request #1148 from Ana06/event-schedule-validation

Validation in EventSchedule
This commit is contained in:
Christian Bruckmayer 2016-08-15 16:28:39 +02:00 committed by GitHub
commit 6c2dc92b84
3 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddIndexToEventSchedule < ActiveRecord::Migration
def change
add_index :event_schedules, [:event_id, :schedule_id], unique: true
end
end