Sha256: 6f61d46f1fcef27b4eab132147036ee29c2c81de9719007cb3368e4eaaad3547

Contents?: true

Size: 801 Bytes

Versions: 3

Compression:

Stored size: 801 Bytes

Contents

require 'skr/db/migration_helpers'

class CreateSkrSkus < ActiveRecord::Migration

    def change

        create_skr_table "skus" do |t|
            t.skr_reference "default_vendor",   null: true,  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

3 entries across 3 versions & 1 rubygems

Version Path
stockor-0.1.9 db/migrate/20140224034759_create_skr_skus.rb
stockor-0.1.8 db/migrate/20140224034759_create_skr_skus.rb
stockor-0.1.7 db/migrate/20140224034759_create_skr_skus.rb