lipsiadmin_generators/attachment/templates/migration.rb in lipsiadmin-4.1.2 vs lipsiadmin_generators/attachment/templates/migration.rb in lipsiadmin-4.1.3

- old
+ new

@@ -1,10 +1,11 @@ class CreateAttachments < ActiveRecord::Migration def self.up create_table :attachments, :force => true do |t| - t.string :attached_file_name, :attached_content_type - t.integer :attached_file_size + t.string :attached_file_name, :attached_content_type + t.integer :attached_file_size t.references :attacher, :polymorphic => true + t.string :attacher_name t.timestamps end end def self.down