Heroku PostgreSQL GROUP_BY error in Rails app

后端 未结 3 1161
别跟我提以往
别跟我提以往 2020-12-18 09:41

I\'ve got a rails app that works fine in development (SQLite) but is throwing lots of errors when I\'ve deployed it via Heroku, which uses PostgreSQL I gather.

the e

3条回答
  •  心在旅途
    2020-12-18 10:22

    Practice.group(Practice.col_list)
    
    
    
    def self.col_list
      Practice.column_names.collect {|c| "practices.#{c}"}.join(",")
    end
    

提交回复
热议问题