Attachment_fu attributes in db

I’m using file_column for upload images.
now,I want to use the plugin attachment_fu.

I have seen that for use it, i must create the attributes like:

class CreateMugshots < ActiveRecord::Migration

def self.up
create_table :mugshots do |t|
t.column :parent_id, :integer
t.column :content_type, :string
t.column :filename, :string
t.column :thumbnail, :string
t.column :size, :integer
t.column :width, :integer
t.column :height, :integer
end
end

is possible create onli the attribute filename?
Thanks

At the very least you need filename, content_type, and possibly size.
If you are not uploading images at all then you can skip height and
width. If you are not going to create thumbnails then you can skip
thumbnail and parent_id.

On Mar 14, 4:51 am, Luca R. [email protected]

mmm…i am uploading images but i cant change the db.
is possible not user height and width?
Thanks

AndyV wrote:

At the very least you need filename, content_type, and possibly size.
If you are not uploading images at all then you can skip height and
width. If you are not going to create thumbnails then you can skip
thumbnail and parent_id.

On Mar 14, 4:51 am, Luca R. [email protected]