这是我的db/config.yml
文件:
adapter: postgres
server: localhost
etc.
当我使用rake db:migrate
时,它适用于adapter: postgresql
。否则它会抱怨:
Please install the postgres adapter: gem install activerecord-postgres-adapter
当sequel
与Sequel.connect(YAML.load_file(..))
一起使用时,它与adapter: postgres
一起使用。否则它会抱怨:
Sequel::AdapterNotFound: LoadError: cannot load such file -- sequel/adapters/postgresql
怎么办? :)
答案 0 :(得分:2)
使用续集,您必须使用postgres
。显然ActiveRecord需要postgresql
。它们是不同的工具,您不应期望相同的配置文件同时适用于这两种工具。