I am trying to make my bun model based of an existing database schema.
There is an existing table that has a column called TransType that contains the polymorphic key. When InventoryReceiptLine is using InvTran it is linked by an IRA key. The problem is when using buns polymorphic relations it expects the key to be InventoryReceiptsLine which it is not. Can I override what the string is stored in the polymorphic column?
I am trying to make my bun model based of an existing database schema. There is an existing table that has a column called TransType that contains the polymorphic key. When InventoryReceiptLine is using InvTran it is linked by an IRA key. The problem is when using buns polymorphic relations it expects the key to be InventoryReceiptsLine which it is not. Can I override what the string is stored in the polymorphic column?
InventoryReceiptLine
InvTran