Sha256: f504bda5fdc88baa3d9be0b59873504e1dce5931ee08556e533c9aa3fc1bc4ff

Contents?: true

Size: 304 Bytes

Versions: 3

Compression:

Stored size: 304 Bytes

Contents

class RemoveImageableFromTbCommerceImages < ActiveRecord::Migration
  def up
    remove_reference :tb_commerce_images, :imageable, polymorphic: true, index: true
  end

  def down
    change_table :tb_commerce_images do |t|
      t.references :imageable, polymorphic: true, index: true
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tb_commerce-0.0.4 db/migrate/20150625180214_remove_imageable_from_tb_commerce_images.rb
tb_commerce-0.0.3 db/migrate/20150625180214_remove_imageable_from_tb_commerce_images.rb
tb_commerce-0.0.2 db/migrate/20150625180214_remove_imageable_from_tb_commerce_images.rb