【发布时间】:2020-08-13 02:49:54
【问题描述】:
这个问题的现有解决方案没有帮助。
导轨:5.2
红宝石:2.4.1
pg:0.18
This is the query from the rails log:
INSERT INTO "users" ("first_name") VALUES ('\xC3\r\x04\t\x03\x02qlF\xA4\.....')
first_name 值使用active_record-pgcrypto gem 加密
first_name 是string 表中的string 数据类型
在 pgAdmin 中复制粘贴查询效果很好。但是应用程序抛出错误。
【问题讨论】:
标签: ruby-on-rails postgresql pg