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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 Roma <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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 > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 Roma <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---