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
The following queries fine but doesn't create, could be a bug I think. Can someone please confirm?
module Products
class Listing
include Clear::Model
self.schema = "products"
self.table = "listings"
column id : Int64, primary: true, presence: false
column title : String?
end
end
# respects schema, works fine
Products::Listing.query.each { |a| puts a.title }
# FAILS tries insert into "listings" without the schema prefix
a = Products::Listing.create(title: "iPhone")
The text was updated successfully, but these errors were encountered:
Thank you for confirming. That's too bad I can't do that as I'm working with a legacy database. I thought I saw references to self.schema in the code when I looked up on how to include the schema information for the model. Any chance this will be fixed soon?
The following queries fine but doesn't create, could be a bug I think. Can someone please confirm?
The text was updated successfully, but these errors were encountered: