Sha256: c580ca672d103bece5284d3b8b08bb27b0e7abb17d1f1afeca2d78dc7de67fcc

Contents?: true

Size: 804 Bytes

Versions: 8

Compression:

Stored size: 804 Bytes

Contents

require 'skr/db/migration_helpers'

class CreateSkrSkuVendors < ActiveRecord::Migration
    def change

        create_skr_table "sku_vendors" do |t|
            t.skr_reference :sku,              null: false, single: true
            t.skr_reference :vendor,           null: false, single: true
            t.skr_currency  "list_price",      null: false, precision: 15, scale: 2
            t.string   "part_code",            null: false
            t.boolean  "is_active",            null: false, default: true
            t.integer  "uom_size",             null: false, default: 1
            t.string   "uom_code",             null: false, default: 'EA'
            t.decimal  "cost",                 null: false, precision: 15, scale: 2
            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/20140321031604_create_skr_sku_vendors.rb
stockor-0.4.0 db/migrate/20140321031604_create_skr_sku_vendors.rb
stockor-0.3.0 db/migrate/20140321031604_create_skr_sku_vendors.rb
stockor-0.2 db/migrate/20140321031604_create_skr_sku_vendors.rb
stockor-0.1.9 db/migrate/20140321031604_create_skr_sku_vendors.rb
stockor-0.1.8 db/migrate/20140321031604_create_skr_sku_vendors.rb
stockor-0.1.7 db/migrate/20140321031604_create_skr_sku_vendors.rb
stockor-0.1.5 db/migrate/20140321031604_create_skr_sku_vendors.rb