Accessing a relationship through another relationship

前端 未结 0 1849
南方客
南方客 2021-01-25 05:09

I have three models: Trip, Visit, Park

The relationships are currently set up like:

class Trip < ApplicationRecord
    has_many :visits
end

class Visit         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题