Sha256: cd3a00951df44b50f20000e8296828b58b5d49973cc77d344f5698935c251962

Contents?: true

Size: 712 Bytes

Versions: 3

Compression:

Stored size: 712 Bytes

Contents

# This migration comes from spree (originally 20140725131539)
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: false, precision: 6
    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_purchase_order-3.7.0 spec/dummy/db/migrate/20191113195878_create_spree_reimbursements.spree.rb
spree_billing_sisow-0.9.2 spec/dummy/db/migrate/20190729091819_create_spree_reimbursements.spree.rb
spree_billing_sisow-0.9.1 spec/dummy/db/migrate/20190729091819_create_spree_reimbursements.spree.rb