lib/models/code.rb in fossil-0.3.44 vs lib/models/code.rb in fossil-0.3.45
- old
+ new
@@ -1,18 +1,19 @@
class Code < Sequel::Model(:'codes')
# NOTE - Count of instances as of 06/01/2009 => 1557
-
+ set_primary_key [:'kid - user', :'kid - mult', :'kid - comm', :'kid - date', :'kid - time']
+
# Returns all the codes that belong to the given code group name
def Code.get_codes(code_group_name)
filter(:name=>code_group_name).collect(&:description)
end
def Code.valid_value_for_group?(value, code_group_name)
filter(:name=>CodeGroup.send(code_group_name)).find{|type| type.value == value}
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'