ActiveRecord::StatementInvalid: PG InFailedSqlTransaction

后端 未结 10 2080
礼貌的吻别
礼貌的吻别 2020-12-13 01:33

I am trying to create an ActiveRecord Object.But I\'m getting this error while creating it.

(0.1ms)  ROLLBACK
ActiveRecord::StatementInvalid: PG::InFailedSql         


        
10条回答
  •  鱼传尺愫
    2020-12-13 01:59

    In my case the Postgres configuration at /usr/local/var/postgres/postgresql.conf had the datetype as the international format of dmy

    Changing datetype to the American format of mdy fixed this issue for me.

提交回复
热议问题