Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Event < ActiveRecord::Base
- has_many :calendar_events
- has_many :calendars, :through => :calendar_events
- # ...
- end
- class Event < ActiveRecord::Base
- has_many :calendar_events, :dependent => :delete_all
- has_many :calendars, :through => :calendar_events
- # ...
- end
Add Comment
Please, Sign In to add comment