ActiveRecord::StatementInvalid. PG Error

前端 未结 2 1159
执念已碎
执念已碎 2021-02-12 17:27

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:15

    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

提交回复
热议问题