query = ProductQuery.new.preload_parent.id.nilable_eq(manufacturer_id.value || product_id.value).name.nilable_eq(name.value)
parentis a polymorphic association of
product_idare model fields, and I think you call them params in the save operation. What I want is to get
parentto macro expand to
product_iddepending on the polymorphic type. And that is both in the model fields and the save operation params. In this case the number of polymorphic types is just 2, but in another case it's 7.
SECRET_KEY_BASE=xxxxxx LUCKY_ENV=production DATABASE_URL=postgresql://@127.0.0.1/<app>_development SEND_GRID_KEY=unused APP_DOMAIN=localhost PORT=1234 ./start_server
LUCKY_ENVenvironment variable will be set and the app will pick it up
Unhandled exception: Unexpected error while running migrations: no driver was registered for the schema "", did you maybe forget to require the database driver?- has anyone seen this before? Things seem to be working fine in dev but not in production