When I need access to my Postgres table, I do something like the following
class Items < ApplicationRecord self.table_name = \'items\' belongs_to :sale