Sha256: 549fa214ffab55e7bc47d55b0e40659b82b34c2eea38813e8b73ca5726c6dedd

Contents?: true

Size: 943 Bytes

Versions: 1

Compression:

Stored size: 943 Bytes

Contents

require 'skr/core/db/migration_helpers'

class CreateSkrSkuTrans < ActiveRecord::Migration
    def change

        create_skr_table "sku_trans" do |t|
            t.references :origin, :polymorphic => true
            t.skr_reference :sku_loc,        null: false, single: true
            t.skr_currency  "cost",          null: false
            t.string   "origin_description", null: false
            t.integer  "prior_qty",          null: false
            t.decimal  "mac",                null: false, precision: 15, scale: 4
            t.decimal  "prior_mac",          null: false, precision: 15, scale: 4
            t.integer  "qty",                null: false, default: 0
            t.string   "uom_code",           null: false, default: 'EA'
            t.integer  "uom_size",           null: false, default: 1
            t.skr_track_modifications        create_only: true # sku_tran can only be created
          end

    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stockor-core-0.2 db/migrate/20140322035024_create_skr_sku_trans.rb