tap/db/migrate/20141204191328_replace_product_image_by_paperclip_attachment.rb

7 lines
182 B
Ruby
Raw Normal View History

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