Kart wrote:
> class AddAttachmentToPolicies < ActiveRecord::Migration
> def self.up
> add_column :policies, :attachment_file_name, :string
> add_column :policies, :attachment_content_type, :string
> add_column :policies, :attachment_file_size, :integer
> end
I also recommend including:
add_column :policies, :attachment_updated_at, :datetime
I don't know that this is strictly required, but I found that I needed
it when I was getting Paperclip working. I have since included it in
several projects now. It wont hurt, and I think it may be required. (I
remember that it is not documented.)
-- Will
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---