class AddAttachmentFu < ActiveRecord::Migration def self.up add_column :images, :content_type, :string add_column :images, :filename, :string add_column :images, :thumbnail, :string add_column :images, :size, :integer add_column :images, :width, :integer add_column :images, :height, :integer remove_column :images, :image drop_table :photos end def self.down remove_column :images, :content_type remove_column :images, :filename remove_column :images, :thumbnail remove_column :images, :size remove_column :images, :width remove_column :images, :height end end