Closed negipo closed 6 months ago
Hi @negipo, I added a require 'pg'
at the very top of the gem in https://github.com/pennylane-hq/activerecord-adapter-redshift/commit/6bea9c3fd6cf2c03b948a76f2fe87d4ba4ed00e3 - does that fix your issue?
Hi, @quentindemetz
I have checked the issue via
# In Gemfile:
gem 'activerecord7-redshift-adapter-pennylane', github: 'pennylane-hq/activerecord-adapter-redshift'
# In Gemfile.lock:
GIT
remote: https://github.com/pennylane-hq/activerecord-adapter-redshift.git
revision: 6bea9c3fd6cf2c03b948a76f2fe87d4ba4ed00e3
specs:
activerecord7-redshift-adapter-pennylane (1.0.4)
activerecord (~> 7.0)
pg (~> 1.0)
and the check was succeed! Thank you for your quick response :D
In v1.0.3,
activerecord7-redshift-adapter-pennylane
callspg
gem internal constants such asPG::PQTRANS_IDLE
without requiringpg
.We wrote some
require 'pg'
before model using redshift to avoid this issue.