【发布时间】:2025-12-22 01:15:10
【问题描述】:
“Paperclip”需要在数据库中为一般附件添加这些列(在以下示例中,它被命名为“属性”):
attribute_file_name
attribute_content_type
attribute_file_size
attribute_updated_at
我没有尝试添加其中的一些,唯一似乎真正需要的是“avatar_file_name”。如果我不插入,“Paperclip”会产生错误。
只添加“avatar_file_name”列是否可取/安全/合理?
【问题讨论】:
标签: ruby-on-rails database ruby-on-rails-3 paperclip