Sha256: fae55ad4a951397512027c2493ecf7afeb7ca25945ec115e54ac46372400524c

Contents?: true

Size: 681 Bytes

Versions: 3

Compression:

Stored size: 681 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
    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

3 entries across 3 versions & 2 rubygems

Version Path
spree_order_reporting-0.0.3 spec/dummy/db/migrate/20160708163197_create_spree_reimbursements.spree.rb
sprangular-0.1.0 spec/dummy/db/migrate/20141203183779_create_spree_reimbursements.spree.rb
sprangular-0.0.1 spec/dummy/db/migrate/20141203183779_create_spree_reimbursements.spree.rb