Sha256: 27ad2434da339888550c0ad86938ab17beb9008777aa42aa435504a08ab6dab9

Contents?: true

Size: 907 Bytes

Versions: 8

Compression:

Stored size: 907 Bytes

Contents

require 'skr/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

8 entries across 8 versions & 1 rubygems

Version Path
stockor-0.5.0 db/migrate/20140400164733_create_skr_vo_lines.rb
stockor-0.4.0 db/migrate/20140400164733_create_skr_vo_lines.rb
stockor-0.3.0 db/migrate/20140400164733_create_skr_vo_lines.rb
stockor-0.2 db/migrate/20140400164733_create_skr_vo_lines.rb
stockor-0.1.9 db/migrate/20140400164733_create_skr_vo_lines.rb
stockor-0.1.8 db/migrate/20140400164733_create_skr_vo_lines.rb
stockor-0.1.7 db/migrate/20140400164733_create_skr_vo_lines.rb
stockor-0.1.5 db/migrate/20140400164733_create_skr_vo_lines.rb