class CreateAttachment < 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.references :attacher, :polymorphic => true t.timestamps end end def self.down drop_table :attachments end end