class CreateFileAttachments < ActiveRecord::Migration def self.up create_table :file_attachments do |t| t.column "content_type", :string t.column "filename", :string t.column "size", :integer t.column "task_id", :integer t.column "parent_id", :integer end end def self.down drop_table :file_attachments end end