Sha256: 004a7da4fcb342aac8e307094ffd81195cbf01c2019dee92a674d4108a685708
Contents?: true
Size: 592 Bytes
Versions: 21
Compression:
Stored size: 592 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: 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
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
solidus_core-2.0.0.beta1 | db/migrate/20140731150017_create_spree_reimbursement_types.rb |