Rails:如何在Rails中使用最新版本的Postgres(你的PostgreSQL版本(80422)太旧了.Active Record支持PostgreSQL> = 9.1。)

时间:2017-04-13 23:06:45

标签: ruby-on-rails postgresql

运行rails db:migrate

时出现以下错误
rails aborted!
Your version of PostgreSQL (80422) is too old. Active Record supports PostgreSQL >= 9.1.
/home/alex/lighthouse/whiteshark-backend/bin/rails:9:in `require'
/home/alex/lighthouse/whiteshark-backend/bin/rails:9:in `<top (required)>'
/home/alex/lighthouse/whiteshark-backend/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)

我安装了PostgreSQL 9.6.2但Rails似乎没有认出它。 我也试过这个解决方案无济于事: Postgresql 9.2 on Centos 5, rails, bundle - PostgreSQL is too old

请帮忙!

0 个答案:

没有答案