Sha256: 0048c7683b57267861cbb780ae0b8fade956ac59b58ea237743da5722ab80856
Contents?: true
Size: 593 Bytes
Versions: 44
Compression:
Stored size: 593 Bytes
Contents
class CreateSpreeReimbursementTypes < ActiveRecord::Migration[4.2] 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: false 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
44 entries across 44 versions & 1 rubygems