Relationships of model

前端 未结 0 1961
渐次进展
渐次进展 2021-02-11 05:11

How can I get all relationships for model. IE, I\'ve got User model:

class User < AR::Base
  has_many :messages, :foreign_key => \'author\'
           


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