Sha256: 20d3c7a05d3cc85ba7702164519b89514e25f75e9ea2ec8fb1815088054fff19

Contents?: true

Size: 448 Bytes

Versions: 21

Compression:

Stored size: 448 Bytes

Contents

class CreateAdjustmentReason < ActiveRecord::Migration[4.2]
  def change
    create_table :spree_adjustment_reasons do |t|
      t.string   "name"
      t.string   "code"
      t.boolean  "active", default: true

      t.timestamps null: true
    end

    add_index :spree_adjustment_reasons, :code
    add_index :spree_adjustment_reasons, :active

    change_table :spree_adjustments do |t|
      t.references :adjustment_reason
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
solidus_core-2.3.1 db/migrate/20150619160613_create_adjustment_reason.rb
solidus_core-2.2.2 db/migrate/20150619160613_create_adjustment_reason.rb
solidus_core-2.1.1 db/migrate/20150619160613_create_adjustment_reason.rb
solidus_core-2.0.3 db/migrate/20150619160613_create_adjustment_reason.rb
solidus_core-2.3.0 db/migrate/20150619160613_create_adjustment_reason.rb
solidus_core-2.3.0.rc3 db/migrate/20150619160613_create_adjustment_reason.rb
solidus_core-2.3.0.rc2 db/migrate/20150619160613_create_adjustment_reason.rb
solidus_core-2.3.0.rc1 db/migrate/20150619160613_create_adjustment_reason.rb
solidus_core-2.3.0.beta1 db/migrate/20150619160613_create_adjustment_reason.rb
solidus_core-2.0.2 db/migrate/20150619160613_create_adjustment_reason.rb
solidus_core-2.2.1 db/migrate/20150619160613_create_adjustment_reason.rb
solidus_core-2.2.0 db/migrate/20150619160613_create_adjustment_reason.rb
solidus_core-2.2.0.rc1 db/migrate/20150619160613_create_adjustment_reason.rb
solidus_core-2.2.0.beta1 db/migrate/20150619160613_create_adjustment_reason.rb
solidus_core-2.1.0 db/migrate/20150619160613_create_adjustment_reason.rb
solidus_core-2.1.0.rc1 db/migrate/20150619160613_create_adjustment_reason.rb
solidus_core-2.0.1 db/migrate/20150619160613_create_adjustment_reason.rb
solidus_core-2.1.0.beta1 db/migrate/20150619160613_create_adjustment_reason.rb
solidus_core-2.0.0 db/migrate/20150619160613_create_adjustment_reason.rb
solidus_core-2.0.0.rc1 db/migrate/20150619160613_create_adjustment_reason.rb