Sha256: 95336d76254a1bc4f75519842ab465c32b7c47befcc08aad19ba4ea15b420810

Contents?: true

Size: 912 Bytes

Versions: 1

Compression:

Stored size: 912 Bytes

Contents

require 'skr/core/db/migration_helpers'

class CreateSkrVoLines < ActiveRecord::Migration
    def change
        create_skr_table "vo_lines" do |t|
            t.skr_reference :voucher,        null: false, single: true
            t.skr_reference :sku_vendor,     null: false, single: true
            t.skr_reference :po_line,        null: true,  single: true
            t.string   "sku_code",           null: false
            t.string   "part_code",          null: false
            t.string   "description",        null: false
            t.string   "uom_code",           null: false
            t.integer  "uom_size",           null: false, limit: 2
            t.integer  "position",           null: false, limit: 2
            t.integer  "qty",                null: false, default: 0
            t.skr_currency  "price",         null: false
            t.skr_track_modifications
        end

    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stockor-core-0.2 db/migrate/20140400164733_create_skr_vo_lines.rb