Sha256: 66792d68cb195f00bd380333cf1d905afc08f1cbfa463fffd7187ca5be774189

Contents?: true

Size: 816 Bytes

Versions: 8

Compression:

Stored size: 816 Bytes

Contents

require 'skr/db/migration_helpers'

class CreateSkrIaLines < ActiveRecord::Migration
    def change

        create_skr_table "ia_lines" do |t|
            t.skr_reference :inventory_adjustment,     null: false, single: true
            t.skr_reference :sku_loc,                  null: false, single: true
            t.integer     "qty",                       null: false, default: 1
            t.string      "uom_code",                  null: false, default: 'EA'
            t.integer      "uom_size",                 null: false, default: 1, limit: 2
            t.skr_currency "cost",                     precision: 15, scale: 2 # n.b. the cost may be left null
            t.boolean      "cost_was_set",             null: false, default: 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/20140322023453_create_skr_ia_lines.rb
stockor-0.4.0 db/migrate/20140322023453_create_skr_ia_lines.rb
stockor-0.3.0 db/migrate/20140322023453_create_skr_ia_lines.rb
stockor-0.2 db/migrate/20140322023453_create_skr_ia_lines.rb
stockor-0.1.9 db/migrate/20140322023453_create_skr_ia_lines.rb
stockor-0.1.8 db/migrate/20140322023453_create_skr_ia_lines.rb
stockor-0.1.7 db/migrate/20140322023453_create_skr_ia_lines.rb
stockor-0.1.5 db/migrate/20140322023453_create_skr_ia_lines.rb