Sha256: 4757075732df58142c936a7070e86933bbe6ffd7109d39cc891660bdd6461d6e

Contents?: true

Size: 576 Bytes

Versions: 14

Compression:

Stored size: 576 Bytes

Contents

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
    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

14 entries across 14 versions & 1 rubygems

Version Path
spree_core-2.4.10 db/migrate/20140731150017_create_spree_reimbursement_types.rb
spree_core-2.4.9 db/migrate/20140731150017_create_spree_reimbursement_types.rb
spree_core-2.4.8 db/migrate/20140731150017_create_spree_reimbursement_types.rb
spree_core-2.4.7 db/migrate/20140731150017_create_spree_reimbursement_types.rb
spree_core-2.4.6 db/migrate/20140731150017_create_spree_reimbursement_types.rb
spree_core-2.4.5 db/migrate/20140731150017_create_spree_reimbursement_types.rb
spree_core-2.4.4 db/migrate/20140731150017_create_spree_reimbursement_types.rb
spree_core-2.4.3 db/migrate/20140731150017_create_spree_reimbursement_types.rb
spree_core-2.4.2 db/migrate/20140731150017_create_spree_reimbursement_types.rb
spree_core-2.4.1 db/migrate/20140731150017_create_spree_reimbursement_types.rb
spree_core-2.4.0 db/migrate/20140731150017_create_spree_reimbursement_types.rb
spree_core-2.4.0.rc3 db/migrate/20140731150017_create_spree_reimbursement_types.rb
spree_core-2.4.0.rc2 db/migrate/20140731150017_create_spree_reimbursement_types.rb
spree_core-2.4.0.rc1 db/migrate/20140731150017_create_spree_reimbursement_types.rb