class Code < Sequel::Model(:'codes') # NOTE - Count of instances as of 06/01/2009 => 1557 # Returns all the codes that belong to the given code group name def Code.get_codes( group_name ) Code.filter( :name=>group_name ) end #### BEGIN GENERATED SECTION #### set_primary_key [:'kid - user', :'kid - mult', :'kid - comm', :'kid - date', :'kid - time'] column_alias :acct_num, :'acct num' column_alias :ap_cost_type, :'ap cost type' column_alias :ap_dep_arr, :'ap dep arr' column_alias :ap_dep_arr_fix, :'ap dep arr fix' column_alias :available, :'available' column_alias :begin_time, :'begin time' column_alias :code, :'code' column_alias :code_link_1, :'code link 1' column_alias :code_link_2, :'code link 2' column_alias :comment_req, :'comment req' column_alias :completed, :'completed' column_alias :copy_comment, :'copy comment' column_alias :cost, :'cost' column_alias :cost_0, :'cost 0' column_alias :description, :'description' column_alias :end_time, :'end time' column_alias :fos_mobile, :'fos mobile' column_alias :flex, :'flex' column_alias :flog_exp_type, :'flog exp type' column_alias :holiday, :'holiday' column_alias :inactive, :'inactive' column_alias :internal01, :'internal01' column_alias :kid_comm, :'kid - comm' column_alias :kid_date, :'kid - date' column_alias :kid_mult, :'kid - mult' column_alias :kid_time, :'kid - time' column_alias :kid_user, :'kid - user' column_alias :name, :'name' column_alias :pay_method, :'pay method' column_alias :pay_method_fix, :'pay method fix' column_alias :percent_markup, :'percent markup' column_alias :purpose, :'purpose' column_alias :ron, :'ron' column_alias :receipt_req, :'receipt req' column_alias :reg_qualification, :'reg qualification' column_alias :reimburs_fix, :'reimburs fix' column_alias :training, :'training' column_alias :unit_type, :'unit type' column_alias :units, :'units' column_alias :value, :'value' column_alias :vendor_req, :'vendor req' column_alias :weight, :'weight' column_alias :weight_old, :'weight old' #### END GENERATED SECTION #### end