Skip to content
Snippets Groups Projects
Commit 62f4bec5 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

A Schedule has a RecurringItemRange, not a RecurringItem.

parent e0d6581a
No related branches found
No related tags found
No related merge requests found
class RecurringItem < ActiveRecord::Base
belongs_to :schedule
has_many :recurring_item_ranges
end
class RecurringItemRange < ActiveRecord::Base
belongs_to :schedule
belongs_to :recurring_item
end
class Schedule < ActiveRecord::Base
has_many :recurring_items
has_many :recurring_item_ranges
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment