Sha256: 2e3b9d9566b1162d7e8055256018b5a0af1f1cd0f222d9bc38a85c524e88f0e5

Contents?: true

Size: 635 Bytes

Versions: 21

Compression:

Stored size: 635 Bytes

Contents

class CreateSpreeReimbursements < ActiveRecord::Migration[4.2]
  def change
    create_table :spree_reimbursements do |t|
      t.string :number
      t.string :reimbursement_status
      t.integer :customer_return_id
      t.integer :order_id
      t.decimal :total, precision: 10, scale: 2

      t.timestamps null: true
    end

    add_index :spree_reimbursements, :customer_return_id
    add_index :spree_reimbursements, :order_id

    remove_column :spree_refunds, :customer_return_id, :integer
    add_column :spree_refunds, :reimbursement_id, :integer

    add_column :spree_return_items, :reimbursement_id, :integer
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
solidus_core-2.3.1 db/migrate/20140725131539_create_spree_reimbursements.rb
solidus_core-2.2.2 db/migrate/20140725131539_create_spree_reimbursements.rb
solidus_core-2.1.1 db/migrate/20140725131539_create_spree_reimbursements.rb
solidus_core-2.0.3 db/migrate/20140725131539_create_spree_reimbursements.rb
solidus_core-2.3.0 db/migrate/20140725131539_create_spree_reimbursements.rb
solidus_core-2.3.0.rc3 db/migrate/20140725131539_create_spree_reimbursements.rb
solidus_core-2.3.0.rc2 db/migrate/20140725131539_create_spree_reimbursements.rb
solidus_core-2.3.0.rc1 db/migrate/20140725131539_create_spree_reimbursements.rb
solidus_core-2.3.0.beta1 db/migrate/20140725131539_create_spree_reimbursements.rb
solidus_core-2.0.2 db/migrate/20140725131539_create_spree_reimbursements.rb
solidus_core-2.2.1 db/migrate/20140725131539_create_spree_reimbursements.rb
solidus_core-2.2.0 db/migrate/20140725131539_create_spree_reimbursements.rb
solidus_core-2.2.0.rc1 db/migrate/20140725131539_create_spree_reimbursements.rb
solidus_core-2.2.0.beta1 db/migrate/20140725131539_create_spree_reimbursements.rb
solidus_core-2.1.0 db/migrate/20140725131539_create_spree_reimbursements.rb
solidus_core-2.1.0.rc1 db/migrate/20140725131539_create_spree_reimbursements.rb
solidus_core-2.0.1 db/migrate/20140725131539_create_spree_reimbursements.rb
solidus_core-2.1.0.beta1 db/migrate/20140725131539_create_spree_reimbursements.rb
solidus_core-2.0.0 db/migrate/20140725131539_create_spree_reimbursements.rb
solidus_core-2.0.0.rc1 db/migrate/20140725131539_create_spree_reimbursements.rb