我在Heroku上运行了一些迁移,我遇到了这个问题.我在其中一个迁移中有这一行来创建一个新表: t.binary :file, :limit => 10.megabytes Heroku给了我这个PostgreSQL错误: An error has occurred, this and all later migrations canceled:
PGError: ERROR: type mo
这部分还不是特别了解,仅供探讨,欢迎指正错误。 首先看源代码 src/include/c.h,这里有一个结构定义: struct varlena { char vl_len_[4]; /* Do not touch this field directly! */ char vl_dat[1]; }; 紧跟着这个定义之后,我们会发现: typ