Sha256: cf5566019a3174d6544169494e6d192f2056d75718e8b0c0eac145a761b2faae

Contents?: true

Size: 454 Bytes

Versions: 6

Compression:

Stored size: 454 Bytes

Contents

# This migration comes from spree (originally 20140806144901)
class AddTypeToReimbursementType < ActiveRecord::Migration
  def change
    add_column :spree_reimbursement_types, :type, :string
    add_index :spree_reimbursement_types, :type

    Spree::ReimbursementType.reset_column_information
    Spree::ReimbursementType.find_by(name: Spree::ReimbursementType::ORIGINAL).update_attributes!(type: 'Spree::ReimbursementType::OriginalPayment')
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
spree_weight_calculator-0.1.0 test/dummy/db/migrate/20160723192608_add_type_to_reimbursement_type.spree.rb
spree_order_reporting-0.0.3 spec/dummy/db/migrate/20160708163205_add_type_to_reimbursement_type.spree.rb
spree_order_reporting-0.0.2 spec/dummy/db/migrate/20160707103530_add_type_to_reimbursement_type.spree.rb
spree_order_reporting-0.0.1 spec/dummy/db/migrate/20160706112482_add_type_to_reimbursement_type.spree.rb
sprangular-0.1.0 spec/dummy/db/migrate/20141203183787_add_type_to_reimbursement_type.spree.rb
sprangular-0.0.1 spec/dummy/db/migrate/20141203183787_add_type_to_reimbursement_type.spree.rb