Querying Postgres View in Rails model

前端 未结 0 642
耶瑟儿~
耶瑟儿~ 2020-12-05 11:15

When I need access to my Postgres table, I do something like the following

class Items < ApplicationRecord
  self.table_name = \'items\'
  belongs_to :sale         


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