Skip to content

Commit

Permalink
Minor model fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-kocienski-gfsc committed Feb 15, 2024
1 parent cadc9d6 commit af61c6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Address < ApplicationRecord

has_many :events
has_many :partners
has_many :calendars
# has_many :calendars

belongs_to :neighbourhood, optional: true

Expand Down
2 changes: 1 addition & 1 deletion app/models/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Event < ApplicationRecord

belongs_to :partner, optional: true
belongs_to :place, class_name: 'Partner', optional: true
belongs_to :address, optional: true
belongs_to :address, optional: true, dependent: :destroy
belongs_to :online_address, optional: true
belongs_to :calendar, optional: true
has_and_belongs_to_many :collections
Expand Down

0 comments on commit af61c6b

Please sign in to comment.