Sha256: 24ab002fb503ece09c0d35e84d896e7eea13acb6dc30d7c814eecc46cb998527

Contents?: true

Size: 296 Bytes

Versions: 1

Compression:

Stored size: 296 Bytes

Contents

# This migration comes from redshop (originally 20160219160430)
class AddAttachmentImageToProducts < ActiveRecord::Migration
  def self.up
    change_table :redshop_products do |t|
      t.attachment :image
    end
  end

  def self.down
    remove_attachment :redshop_products, :image
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redshop-0.0.1 test/dummy/db/migrate/20160219160730_add_attachment_image_to_products.redshop.rb