mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Merge pull request #1148 from Ana06/event-schedule-validation
Validation in EventSchedule
This commit is contained in:
commit
6c2dc92b84
3 changed files with 8 additions and 1 deletions
5
db/migrate/20160815140302_add_index_to_event_schedule.rb
Normal file
5
db/migrate/20160815140302_add_index_to_event_schedule.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddIndexToEventSchedule < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :event_schedules, [:event_id, :schedule_id], unique: true
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue