Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以用 attachment_fu 重命名列吗?
我使用 oracle 作为我的数据库,大小是 oracle 中的关键字。所以我不想创建一个大小名称的列。那么在使用 attachment_fu 时创建一个具有文件大小而不是大小的列可以吗?
如果您使用的是文件大小,只需将以下方法添加到具有附件的类中。
默认尺寸 自我文件大小 结尾 默认大小=(字节) self.filesize = 字节 结尾
这应该可以解决您的问题,而无需侵入附件_fu。