You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get a list of all subscriptions that have been paid for offline (i.e. where the 'fake_processor' has been used).
Pay::Subscription.joins(:pay_customers).where(pay_customers: {processor: "fake_processor"}).where.not(processor_id: [nil, ""]) results in Can't join 'Pay::Subscription' to association named 'pay_customers'; perhaps you misspelled it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to get a list of all subscriptions that have been paid for offline (i.e. where the 'fake_processor' has been used).
Pay::Subscription.joins(:pay_customers).where(pay_customers: {processor: "fake_processor"}).where.not(processor_id: [nil, ""])
results inCan't join 'Pay::Subscription' to association named 'pay_customers'; perhaps you misspelled it?
How can I perform this join?
Beta Was this translation helpful? Give feedback.
All reactions