Sha256: e4ce6fbb420dd43f2d41e9110393780d731db88906912c4a233e0d44832941eb

Contents?: true

Size: 285 Bytes

Versions: 35

Compression:

Stored size: 285 Bytes

Contents

class MakeAdjustmentsPolymorphic < ActiveRecord::Migration

  def change
    add_column :spree_adjustments, :adjustable_type, :string
    rename_column :spree_adjustments, :order_id, :adjustable_id
    execute "UPDATE spree_adjustments SET adjustable_type = 'Spree::Order'"
  end

end

Version data entries

35 entries across 35 versions & 3 rubygems

Version Path
spree_core-1.2.5 db/migrate/20111201024007_make_adjustments_polymorphic.rb
spree_core-1.1.6 db/migrate/20111201024007_make_adjustments_polymorphic.rb
spree_core-1.1.5 db/migrate/20111201024007_make_adjustments_polymorphic.rb
spree_core-1.2.4 db/migrate/20111201024007_make_adjustments_polymorphic.rb
spree_core-1.0.7 db/migrate/20111201024007_make_adjustments_polymorphic.rb
spree_core-1.2.3 db/migrate/20111201024007_make_adjustments_polymorphic.rb
spree_core-1.2.2 db/migrate/20111201024007_make_adjustments_polymorphic.rb
spree_core-1.1.4 db/migrate/20111201024007_make_adjustments_polymorphic.rb
spree_core-1.2.0 db/migrate/20111201024007_make_adjustments_polymorphic.rb
spree_core-1.2.0.rc2 db/migrate/20111201024007_make_adjustments_polymorphic.rb
spree_core-1.2.0.rc1 db/migrate/20111201024007_make_adjustments_polymorphic.rb
spree_core-1.1.3 db/migrate/20111201024007_make_adjustments_polymorphic.rb
spree_core-1.0.6 db/migrate/20111201024007_make_adjustments_polymorphic.rb
spree_pag_seguro-1.0.7 spec/dummy/db/migrate/20120301154136_make_adjustments_polymorphic.rb
spree_core-1.1.2 db/migrate/20111201024007_make_adjustments_polymorphic.rb
spree_core-1.1.2.rc1 db/migrate/20111201024007_make_adjustments_polymorphic.rb
spree_pag_seguro-1.0.6 spec/dummy/db/migrate/20120301154136_make_adjustments_polymorphic.rb
spree_pag_seguro-1.0.5 spec/dummy/db/migrate/20120301154136_make_adjustments_polymorphic.rb
spree_pag_seguro-1.0.4 spec/dummy/db/migrate/20120301154136_make_adjustments_polymorphic.rb
spree_core-1.1.1 db/migrate/20111201024007_make_adjustments_polymorphic.rb