ActiveRecord::StatementInvalid. PG Error

前端 未结 2 1846
無奈伤痛
無奈伤痛 2021-02-12 17:11

I am trying to find a project from Project model using Project.find(id) but it is giving me ActiveRecord::StatementInvalid error

F

2条回答
  •  渐次进展
    2021-02-12 18:03

    all it needed was

     task "resque:setup" => :environment do
      #ENV['QUEUE'] = '*'
    
      Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection }
     end
    

    in your resque.rake file

提交回复
热议问题