Skip to content

Commit f7d7db4

Browse files
committed
fix: solve scouting waitlist issue
O ScoutingWatchlist já tinha belongs_to :organization só estava faltando o outro lado da associação no Organization. Uma causando System Error undefined method 'scouting_watchlists' for an instance of Organization
1 parent 11b77f9 commit f7d7db4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/models/organization.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class Organization < ApplicationRecord
4040
has_many :players, dependent: :destroy
4141
has_many :matches, dependent: :destroy
4242
has_many :scouting_targets, dependent: :destroy
43+
has_many :scouting_watchlists, dependent: :destroy
4344
has_many :schedules, dependent: :destroy
4445
has_many :vod_reviews, dependent: :destroy
4546
has_many :team_goals, dependent: :destroy

0 commit comments

Comments
 (0)