Sha256: b78ebecfd549da22572762496a2d80f31f180b202d3b88c6e7632d4d5f4024dd

Contents?: true

Size: 806 Bytes

Versions: 1

Compression:

Stored size: 806 Bytes

Contents

require 'skr/core/db/migration_helpers'

class CreateSkrSkus < ActiveRecord::Migration

    def change

        create_skr_table "skus" do |t|
            t.skr_reference "default_vendor",   null: false, to_table: 'vendors'
            t.skr_reference "gl_asset_account", null: false, to_table: 'gl_accounts'
            t.string   "default_uom_code",      null: false
            t.string   "code",                  null: false
            t.string   "description",           null: false
            t.boolean  "is_other_charge",       null: false, default: false
            t.boolean  "does_track_inventory",  null: false, default: false
            t.boolean  "can_backorder",         null: false, default: false
            t.skr_track_modifications
        end

        #skr_add_index :
    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stockor-core-0.2 db/migrate/20140224034759_create_skr_skus.rb