class SoSalesOrderLine < InflowServer self.table_name = 'So_SalesOrder_Line' self.primary_key = 'SalesOrderLineId' belongs_to :order, class_name: "SoSalesOrder", foreign_key: "SalesOrderId", primary_key: "SalesOrderId" end