请安装postgres适配器:`gem install activerecord-postgres-adapter`

时间:2016-02-28 12:33:52

标签: ruby-on-rails postgresql

运行服务器导轨失败时。

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

1 个答案:

答案 0 :(得分:0)

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

适配器:postgresql

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