Sha256: 130edd41811ac284a4202d2d0a30c33fdabe5fc13b442b4af41e45bad24f44eb

Contents?: true

Size: 649 Bytes

Versions: 2

Compression:

Stored size: 649 Bytes

Contents

# This migration comes from spree (originally 20140731150017)
class CreateSpreeReimbursementTypes < ActiveRecord::Migration
  def change
    create_table :spree_reimbursement_types do |t|
      t.string :name
      t.boolean :active, default: true
      t.boolean :mutable, default: true

      t.timestamps null: true
    end

    reversible do |direction|
      direction.up do
        Spree::ReimbursementType.create!(name: Spree::ReimbursementType::ORIGINAL)
      end
    end

    add_column :spree_return_items, :preferred_reimbursement_type_id, :integer
    add_column :spree_return_items, :override_reimbursement_type_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/20160707103526_create_spree_reimbursement_types.spree.rb
spree_order_reporting-0.0.1 spec/dummy/db/migrate/20160706112478_create_spree_reimbursement_types.spree.rb