【问题标题】:Please install the postgres adapter: `gem install activerecord-postgres-adapter`请安装 postgres 适配器:`gem install activerecord-postgres-adapter`
【发布时间】:2016-02-29 15:41:45
【问题描述】:

当运行服务器导轨失败时。

jhipster@jhipster-VM:~/Escritorio/witcamp$ gem li

* 本地宝石 *

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

database.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

【问题讨论】:

    标签: ruby-on-rails postgresql


    【解决方案1】:

    在你的database.yml文件中应该有。

    适配器:postgresql

    另外,在 GemFile 中必须有:gem 'pg'

    【讨论】:

      猜你喜欢
      • 2012-03-25
      • 1970-01-01
      • 1970-01-01
      • 2013-06-03
      • 2014-04-15
      • 1970-01-01
      • 2013-03-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多