无法加载“redshift”Active Record 适配器

我已使用此 DOC 为我的 rails6 项目配置了 RedShift VPC。

但它给了我这个错误“无法加载‘redshift’active Record 适配器。确保适配器在 config/database.yml 中拼写正确,并且您已将必要的适配器 gem 添加到 Gemfile。(LoadError )"
数据库.yml

redshift_staging:
adapter: redshift
host: ....us-west-2.redshift.amazonaws.com
port: 5439
database: database name
username: root user name
password:  ***
encoding: utf8
pool: 3
timeout: 5000

我可以通过将 redshift_staging 设置为开发数据库并通过 rails 控制台进行查询来获取记录。

我有 2 个数据库 1(development (local Postgres)) & 2(redshfit_staging)

我想使用 redshfit_staging 将我的项目与开发数据库和特定模型连接起来。

WMLwml5200 回答:无法加载“redshift”Active Record 适配器

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/6321.html

大家都在问