Skip to content
  • Daniel Whitney's avatar
    15369fd9
    Infer `foerign_key` when `inverse_of` is present (#47797) · 15369fd9
    Daniel Whitney authored
    
    
    * Infer `foerign_key` when `inverse_of` is present
    
    Automatically infer `foreign_key` on `has_one` and `has_many` associations when `inverse_of` is present.
    
    When inverse of is present, rails has all the info it needs to figure out what the foreign_key on the associated model should be.  I can't imagine this breaking anything
    
    * Update test models to remove redundant foreign_keys
    
    * add changelog entry
    
    * fix changelog grammar
    
    Co-authored-by: default avatarRafael Mendonça França <rafael@franca.dev>
    15369fd9
    Infer `foerign_key` when `inverse_of` is present (#47797)
    Daniel Whitney authored
    
    
    * Infer `foerign_key` when `inverse_of` is present
    
    Automatically infer `foreign_key` on `has_one` and `has_many` associations when `inverse_of` is present.
    
    When inverse of is present, rails has all the info it needs to figure out what the foreign_key on the associated model should be.  I can't imagine this breaking anything
    
    * Update test models to remove redundant foreign_keys
    
    * add changelog entry
    
    * fix changelog grammar
    
    Co-authored-by: default avatarRafael Mendonça França <rafael@franca.dev>
Loading