Ruby的PostgreSQL适配器的正确名称是什么?

时间:2014-03-14 21:43:26

标签: ruby postgresql sequel

这是我的db/config.yml文件:

adapter: postgres
server: localhost
etc.

当我使用rake db:migrate时,它适用于adapter: postgresql。否则它会抱怨:

Please install the postgres adapter: gem install activerecord-postgres-adapter

sequelSequel.connect(YAML.load_file(..))一起使用时,它与adapter: postgres一起使用。否则它会抱怨:

Sequel::AdapterNotFound: LoadError: cannot load such file -- sequel/adapters/postgresql

怎么办? :)

1 个答案:

答案 0 :(得分:2)

使用续集,您必须使用postgres。显然ActiveRecord需要postgresql。它们是不同的工具,您不应期望相同的配置文件同时适用于这两种工具。

相关问题