Ruby On Rails Model relationship clarification

前端 未结 0 1730
鱼传尺愫
鱼传尺愫 2021-01-01 15:59

so i have a tithe model and a membership model like this

class Tithe < ApplicationRecord
    belongs_to :membership, foreign_key: "membership_no"         


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