当运行服务器导轨失败时。
jhipster@jhipster虚拟机:~/Escritorio/witcamp$gem li
*本地宝石*

actionmailer (2.2.2)
actionpack (2.2.2)
activerecord (2.2.2)
activerecord-postgresql-adapter (0.0.1)

数据库.yml
development:
  adapter: postgres
  encoding: unicode
  database: witcamp
  pool: 5
  username: root
  password: 123456

test:
  adapter: postgres
  encoding: unicode
  database: witcamp
  pool: 5
  username: root
  password: 123456

最佳答案

在database.yml文件中应该是。
适配器:postgresql
而且,在GemFile中必须有:gem'pg'

关于ruby-on-rails - 请安装postgres适配器:`gem install activerecord-postgres-adapter`,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/35682577/

10-14 01:28