Explicit foreign_key on CarteChamp
This commit is contained in:
parent
744117537b
commit
df73e442e9
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
class Champs::CarteChamp < Champ
|
||||
has_many :geo_areas, dependent: :destroy
|
||||
has_many :geo_areas, foreign_key: :champ_id, dependent: :destroy
|
||||
|
||||
# We are not using scopes here as we want to access
|
||||
# the following collections on unsaved records.
|
||||
|
|
Loading…
Add table
Reference in a new issue