Sha256: cab3f206d797e510ad5ef72298f7d9c75e8fd67344f0ba510e931c0307edbaa8

Contents?: true

Size: 692 Bytes

Versions: 2

Compression:

Stored size: 692 Bytes

Contents

# This migration comes from spree (originally 20140725131539)
class CreateSpreeReimbursements < ActiveRecord::Migration
  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

2 entries across 2 versions & 1 rubygems

Version Path
spree_order_reporting-0.0.2 spec/dummy/db/migrate/20160707103522_create_spree_reimbursements.spree.rb
spree_order_reporting-0.0.1 spec/dummy/db/migrate/20160706112474_create_spree_reimbursements.spree.rb