我需要在 postgresql 数据库中存储一些机密数据。为了做到这一点,我使用了 pgcrypto gem。我将此 gem 添加到 Gemfile 中,并将 database.yml 中的适配器名称更改为 pgcrypto。并在捆绑安装后执行以下命令。rails generate pgcrypto:install
. 但我收到以下错误Could not load the 'pgcrypto' Active Record adapter. Ensure that the adapter is spelled correctly in config/database.yml and that you've added the necessary adapter gem to your Gemfile. (LoadError)
帮助我解决这个问题。Ruby-2.6.0 和 rails 5.2.4.2
问问题
138 次