Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3782778
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:07:51+00:00 2026-05-19T11:07:51+00:00

Paperclip requires to add these columns in a database for a general attachement (in

  • 0

“Paperclip” requires to add these columns in a database for a general attachement (in the following example it is named ‘attribute’):

attribute_file_name
attribute_content_type
attribute_file_size
attribute_updated_at

I have not tried to add some of them and the only one who seemed really required was ‘avatar_file_name’. If I don’t insert that, “Paperclip” will generate an error.

Is it advisable/safe/reasonable to add only the column ‘avatar_file_name’?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T11:07:52+00:00Added an answer on May 19, 2026 at 11:07 am

    No, it is not advisable. Those four columns exist for a reason and even if (I don’t know) it works to add an attachment without some of those fields present, there will be a lot of functionality that will not work and instead throw errors. Resizing, moving, saving to S3, etc are just examples of what might not work.

    Next thing, is there any reason NOT to add all four fields? It doesn’t seem likely to me.

    Update

    Here is a quote from the git repository for paperclip:

    Only attachment_file_name is required for paperclip to operate

    So it seems like those guys saw the reason before me 🙂

    Still, I think you will lose some functionality but it will not cause any errors.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am wondering if Paperclip does require all four columns in database as: add_column
I tried to run rails/generate paperclip photo data and the following error occured: C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/rubygems_integrat
I have the following gems defined in my environment.rb file: config.gem authlogic config.gem paperclip
I'm (loosely) following RailsCasts tutorial #182 , which uses Paperclip, ImageMagick, and Jcrop to
I am getting the following error when trying to upload an image using paperclip
Paperclip is a great upload plugin for Rails. Storing uploads on the local filesystem
The Paperclip plugin for Rails has a resize option that keeps the image in
I installed the paperclip plugin and was able to use it locally. When I
I'm using paperclip to upload a pdf. Once the file is uploaded I need
I'm using Paperclip and have a default_url option like this for one of my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.