tap/db/migrate/20141204191328_replace_product_image_by_paperclip_attachment.rb
2014-12-04 20:32:31 +01:00

7 lines
182 B
Ruby

class ReplaceProductImageByPaperclipAttachment < ActiveRecord::Migration
def change
remove_column :products, :img_path, :string
add_attachment :products, :avatar
end
end