magic_model_generator 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (360) hide show
  1. data/History.txt +8 -0
  2. data/License.txt +20 -0
  3. data/Manifest.txt +81 -0
  4. data/{README → README.txt} +0 -0
  5. data/Rakefile +58 -59
  6. data/lib/activerecord/base.rb +0 -2
  7. data/lib/magic_model_generator.rb +0 -2
  8. data/lib/magic_model_generator/schema.rb +1 -5
  9. data/lib/magic_model_generator/validations.rb +1 -0
  10. data/lib/magic_model_generator/version.rb +1 -1
  11. data/scripts/txt2html +67 -0
  12. data/setup.rb +1585 -0
  13. data/tasks/build_db.rake +85 -0
  14. data/test/connections/native_db2/connection.rb +25 -0
  15. data/test/connections/native_firebird/connection.rb +26 -0
  16. data/test/connections/native_frontbase/connection.rb +27 -0
  17. data/test/connections/native_mysql/connection.rb +27 -0
  18. data/test/connections/native_openbase/connection.rb +21 -0
  19. data/test/connections/native_oracle/connection.rb +27 -0
  20. data/test/connections/native_postgresql/connection.rb +23 -0
  21. data/test/connections/native_sqlite/connection.rb +25 -0
  22. data/test/connections/native_sqlite3/connection.rb +25 -0
  23. data/test/connections/native_sqlite3/in_memory_connection.rb +18 -0
  24. data/test/connections/native_sqlserver/connection.rb +23 -0
  25. data/test/connections/native_sqlserver_odbc/connection.rb +25 -0
  26. data/test/connections/native_sybase/connection.rb +23 -0
  27. data/test/fixtures/db_definitions/db2.drop.sql +32 -0
  28. data/test/fixtures/db_definitions/db2.sql +231 -0
  29. data/test/fixtures/db_definitions/db22.drop.sql +2 -0
  30. data/test/fixtures/db_definitions/db22.sql +5 -0
  31. data/test/fixtures/db_definitions/firebird.drop.sql +63 -0
  32. data/test/fixtures/db_definitions/firebird.sql +304 -0
  33. data/test/fixtures/db_definitions/firebird2.drop.sql +2 -0
  34. data/test/fixtures/db_definitions/firebird2.sql +6 -0
  35. data/test/fixtures/db_definitions/frontbase.drop.sql +32 -0
  36. data/test/fixtures/db_definitions/frontbase.sql +268 -0
  37. data/test/fixtures/db_definitions/frontbase2.drop.sql +1 -0
  38. data/test/fixtures/db_definitions/frontbase2.sql +4 -0
  39. data/test/fixtures/db_definitions/mysql.drop.sql +32 -0
  40. data/test/fixtures/db_definitions/mysql.sql +234 -0
  41. data/test/fixtures/db_definitions/mysql2.drop.sql +2 -0
  42. data/test/fixtures/db_definitions/mysql2.sql +5 -0
  43. data/test/fixtures/db_definitions/openbase.drop.sql +2 -0
  44. data/test/fixtures/db_definitions/openbase.sql +302 -0
  45. data/test/fixtures/db_definitions/openbase2.drop.sql +2 -0
  46. data/test/fixtures/db_definitions/openbase2.sql +7 -0
  47. data/test/fixtures/db_definitions/oracle.drop.sql +65 -0
  48. data/test/fixtures/db_definitions/oracle.sql +325 -0
  49. data/test/fixtures/db_definitions/oracle2.drop.sql +2 -0
  50. data/test/fixtures/db_definitions/oracle2.sql +6 -0
  51. data/test/fixtures/db_definitions/postgresql.drop.sql +37 -0
  52. data/test/fixtures/db_definitions/postgresql.sql +247 -0
  53. data/test/fixtures/db_definitions/postgresql2.drop.sql +2 -0
  54. data/test/fixtures/db_definitions/postgresql2.sql +4 -0
  55. data/test/fixtures/db_definitions/schema.rb +74 -0
  56. data/test/fixtures/db_definitions/sqlite.drop.sql +32 -0
  57. data/test/fixtures/db_definitions/sqlite.sql +215 -0
  58. data/test/fixtures/db_definitions/sqlite2.drop.sql +2 -0
  59. data/test/fixtures/db_definitions/sqlite2.sql +5 -0
  60. data/test/fixtures/db_definitions/sqlserver.drop.sql +34 -0
  61. data/test/fixtures/db_definitions/sqlserver.sql +243 -0
  62. data/test/fixtures/db_definitions/sqlserver2.drop.sql +2 -0
  63. data/test/fixtures/db_definitions/sqlserver2.sql +5 -0
  64. data/test/fixtures/db_definitions/sybase.drop.sql +34 -0
  65. data/test/fixtures/db_definitions/sybase.sql +218 -0
  66. data/test/fixtures/db_definitions/sybase2.drop.sql +4 -0
  67. data/test/fixtures/db_definitions/sybase2.sql +5 -0
  68. data/test/{magic_model_generator_test.rb → test_magic_model_generator.rb} +1 -1
  69. data/test/test_rails_app/test/test_helper.rb +36 -0
  70. data/website/index.html +165 -0
  71. data/website/index.txt +83 -0
  72. data/website/javascripts/rounded_corners_lite.inc.js +285 -0
  73. data/website/stylesheets/screen.css +138 -0
  74. data/website/template.js +3 -0
  75. data/website/template.rhtml +53 -0
  76. metadata +96 -329
  77. data/examples/singleview/account.rb +0 -94
  78. data/examples/singleview/account_history.rb +0 -21
  79. data/examples/singleview/account_reservation.rb +0 -26
  80. data/examples/singleview/account_type.rb +0 -54
  81. data/examples/singleview/account_type_aging.rb +0 -17
  82. data/examples/singleview/account_type_variable.rb +0 -8
  83. data/examples/singleview/address.rb +0 -8
  84. data/examples/singleview/address_format.rb +0 -49
  85. data/examples/singleview/address_history.rb +0 -28
  86. data/examples/singleview/adjustment.rb +0 -97
  87. data/examples/singleview/adjustment_batch.rb +0 -42
  88. data/examples/singleview/adjustment_invoice.rb +0 -17
  89. data/examples/singleview/adjustment_type.rb +0 -54
  90. data/examples/singleview/adjustment_type_variable.rb +0 -8
  91. data/examples/singleview/archive_lock_t.rb +0 -11
  92. data/examples/singleview/archive_result.rb +0 -15
  93. data/examples/singleview/archive_type.rb +0 -31
  94. data/examples/singleview/archive_type_table_list.rb +0 -15
  95. data/examples/singleview/atai_error_name.rb +0 -7
  96. data/examples/singleview/atlanta_form.rb +0 -23
  97. data/examples/singleview/atlanta_form_field.rb +0 -12
  98. data/examples/singleview/atlanta_group.rb +0 -285
  99. data/examples/singleview/atlanta_help_entry.rb +0 -32
  100. data/examples/singleview/atlanta_operator.rb +0 -356
  101. data/examples/singleview/atlanta_profile.rb +0 -47
  102. data/examples/singleview/atlanta_profile_func_map.rb +0 -8
  103. data/examples/singleview/atlanta_profile_group_map.rb +0 -10
  104. data/examples/singleview/atlanta_profile_role_map.rb +0 -8
  105. data/examples/singleview/atlanta_profile_wf_map.rb +0 -10
  106. data/examples/singleview/atlanta_role.rb +0 -23
  107. data/examples/singleview/atlanta_table_partition.rb +0 -39
  108. data/examples/singleview/attribute_type.rb +0 -75
  109. data/examples/singleview/attribute_type_variable.rb +0 -8
  110. data/examples/singleview/bill_run.rb +0 -93
  111. data/examples/singleview/bill_run_operation.rb +0 -54
  112. data/examples/singleview/bill_run_type.rb +0 -39
  113. data/examples/singleview/bill_run_type_status.rb +0 -12
  114. data/examples/singleview/bill_run_type_task.rb +0 -12
  115. data/examples/singleview/cache.rb +0 -23
  116. data/examples/singleview/cache_field.rb +0 -13
  117. data/examples/singleview/can_act_charge.rb +0 -16
  118. data/examples/singleview/charge.rb +0 -67
  119. data/examples/singleview/charge_category.rb +0 -45
  120. data/examples/singleview/charge_output_defn.rb +0 -13
  121. data/examples/singleview/charge_output_defn_history.rb +0 -22
  122. data/examples/singleview/charge_output_defn_var.rb +0 -10
  123. data/examples/singleview/configuration_attr_type.rb +0 -22
  124. data/examples/singleview/configuration_attribute.rb +0 -11
  125. data/examples/singleview/configuration_item.rb +0 -26
  126. data/examples/singleview/configuration_item_type.rb +0 -29
  127. data/examples/singleview/contract.rb +0 -35
  128. data/examples/singleview/contract_history.rb +0 -48
  129. data/examples/singleview/contract_type.rb +0 -58
  130. data/examples/singleview/contract_type_product.rb +0 -11
  131. data/examples/singleview/conversion_rate.rb +0 -14
  132. data/examples/singleview/currency.rb +0 -118
  133. data/examples/singleview/currency_history.rb +0 -28
  134. data/examples/singleview/customer_contact.rb +0 -12
  135. data/examples/singleview/customer_node.rb +0 -166
  136. data/examples/singleview/customer_node_bill_run.rb +0 -12
  137. data/examples/singleview/customer_node_charge_cat.rb +0 -22
  138. data/examples/singleview/customer_node_correspond.rb +0 -12
  139. data/examples/singleview/customer_node_da.rb +0 -11
  140. data/examples/singleview/customer_node_da_array.rb +0 -35
  141. data/examples/singleview/customer_node_history.rb +0 -86
  142. data/examples/singleview/customer_node_inv_format.rb +0 -33
  143. data/examples/singleview/customer_node_type.rb +0 -89
  144. data/examples/singleview/customer_node_type_cc.rb +0 -18
  145. data/examples/singleview/customer_node_type_da.rb +0 -8
  146. data/examples/singleview/customer_node_type_var.rb +0 -8
  147. data/examples/singleview/customer_query.rb +0 -80
  148. data/examples/singleview/customer_query_progress.rb +0 -20
  149. data/examples/singleview/customer_query_type.rb +0 -49
  150. data/examples/singleview/customer_query_type_var.rb +0 -8
  151. data/examples/singleview/delete_cascade.rb +0 -13
  152. data/examples/singleview/delete_cascade_group.rb +0 -21
  153. data/examples/singleview/delete_constraint.rb +0 -9
  154. data/examples/singleview/derived_attribute.rb +0 -32
  155. data/examples/singleview/derived_attribute_array.rb +0 -32
  156. data/examples/singleview/derived_attribute_history.rb +0 -41
  157. data/examples/singleview/derived_attribute_index.rb +0 -13
  158. data/examples/singleview/derived_attribute_value.rb +0 -19
  159. data/examples/singleview/dil.rb +0 -18
  160. data/examples/singleview/dil_history.rb +0 -24
  161. data/examples/singleview/dil_reference.rb +0 -9
  162. data/examples/singleview/dil_validation_t.rb +0 -6
  163. data/examples/singleview/dil_variable.rb +0 -10
  164. data/examples/singleview/dunning_t.rb +0 -14
  165. data/examples/singleview/entity_mapping.rb +0 -11
  166. data/examples/singleview/entity_remap.rb +0 -22
  167. data/examples/singleview/entity_validation.rb +0 -70
  168. data/examples/singleview/entity_validation_list.rb +0 -15
  169. data/examples/singleview/entity_validation_variable.rb +0 -8
  170. data/examples/singleview/equipment.rb +0 -28
  171. data/examples/singleview/equipment_history.rb +0 -62
  172. data/examples/singleview/equipment_type.rb +0 -57
  173. data/examples/singleview/equipment_type_variable.rb +0 -8
  174. data/examples/singleview/error_group.rb +0 -18
  175. data/examples/singleview/error_message.rb +0 -65
  176. data/examples/singleview/evs_address_equiv.rb +0 -17
  177. data/examples/singleview/evs_alias.rb +0 -12
  178. data/examples/singleview/evs_attribute_type_key.rb +0 -7
  179. data/examples/singleview/evt_equipment_changeover.rb +0 -9
  180. data/examples/singleview/expression_list.rb +0 -27
  181. data/examples/singleview/expression_list_value.rb +0 -17
  182. data/examples/singleview/fac_group_compatibility.rb +0 -11
  183. data/examples/singleview/fac_group_instance.rb +0 -19
  184. data/examples/singleview/fac_group_instance_hist.rb +0 -16
  185. data/examples/singleview/facility.rb +0 -9
  186. data/examples/singleview/facility_group.rb +0 -21
  187. data/examples/singleview/facility_group_history.rb +0 -21
  188. data/examples/singleview/foreign_key.rb +0 -9
  189. data/examples/singleview/function_defn.rb +0 -16
  190. data/examples/singleview/function_defn_history.rb +0 -35
  191. data/examples/singleview/function_role.rb +0 -24
  192. data/examples/singleview/function_role_map.rb +0 -10
  193. data/examples/singleview/gl_code.rb +0 -65
  194. data/examples/singleview/gl_code_history.rb +0 -20
  195. data/examples/singleview/gl_upload.rb +0 -10
  196. data/examples/singleview/icon.rb +0 -64
  197. data/examples/singleview/inv_loop_t.rb +0 -4
  198. data/examples/singleview/inv_report_accounts_t.rb +0 -25
  199. data/examples/singleview/invoice.rb +0 -134
  200. data/examples/singleview/invoice_contents.rb +0 -14
  201. data/examples/singleview/invoice_format.rb +0 -31
  202. data/examples/singleview/invoice_format_history.rb +0 -29
  203. data/examples/singleview/invoice_message.rb +0 -17
  204. data/examples/singleview/invoice_message_history.rb +0 -31
  205. data/examples/singleview/invoice_message_variable.rb +0 -10
  206. data/examples/singleview/invoice_receivable_type.rb +0 -13
  207. data/examples/singleview/invoice_type.rb +0 -23
  208. data/examples/singleview/invoice_type_history.rb +0 -26
  209. data/examples/singleview/invoice_type_variable.rb +0 -10
  210. data/examples/singleview/isp_email_address.rb +0 -17
  211. data/examples/singleview/licence_current_values.rb +0 -12
  212. data/examples/singleview/menu_role_map.rb +0 -10
  213. data/examples/singleview/normalised_event.rb +0 -119
  214. data/examples/singleview/normalised_event_error.rb +0 -91
  215. data/examples/singleview/normalised_event_file.rb +0 -75
  216. data/examples/singleview/normalised_event_ft.rb +0 -18
  217. data/examples/singleview/normalised_event_ft_hist.rb +0 -25
  218. data/examples/singleview/normalised_event_ft_var.rb +0 -10
  219. data/examples/singleview/normalised_event_type.rb +0 -54
  220. data/examples/singleview/output_device.rb +0 -37
  221. data/examples/singleview/output_method.rb +0 -32
  222. data/examples/singleview/output_method_type.rb +0 -38
  223. data/examples/singleview/output_select.rb +0 -17
  224. data/examples/singleview/payment.rb +0 -102
  225. data/examples/singleview/payment_batch.rb +0 -43
  226. data/examples/singleview/payment_invoice.rb +0 -17
  227. data/examples/singleview/payment_item.rb +0 -15
  228. data/examples/singleview/payment_type.rb +0 -57
  229. data/examples/singleview/payment_type_variable.rb +0 -8
  230. data/examples/singleview/person.rb +0 -60
  231. data/examples/singleview/person_history.rb +0 -69
  232. data/examples/singleview/person_type.rb +0 -39
  233. data/examples/singleview/plan_table.rb +0 -27
  234. data/examples/singleview/product.rb +0 -45
  235. data/examples/singleview/product_compatibility.rb +0 -13
  236. data/examples/singleview/product_derived_attribute.rb +0 -10
  237. data/examples/singleview/product_facility_group.rb +0 -16
  238. data/examples/singleview/product_group.rb +0 -12
  239. data/examples/singleview/product_group_history.rb +0 -20
  240. data/examples/singleview/product_history.rb +0 -35
  241. data/examples/singleview/product_in_product_group.rb +0 -12
  242. data/examples/singleview/product_instance.rb +0 -41
  243. data/examples/singleview/product_instance_equip.rb +0 -21
  244. data/examples/singleview/product_instance_history.rb +0 -37
  245. data/examples/singleview/product_instance_service.rb +0 -17
  246. data/examples/singleview/product_payment_item.rb +0 -19
  247. data/examples/singleview/product_service_type.rb +0 -32
  248. data/examples/singleview/product_service_type_equip.rb +0 -20
  249. data/examples/singleview/product_subtotal.rb +0 -14
  250. data/examples/singleview/product_tariff.rb +0 -16
  251. data/examples/singleview/racr_clec_t1.rb +0 -12
  252. data/examples/singleview/racr_clec_t2.rb +0 -12
  253. data/examples/singleview/racr_clec_t3.rb +0 -28
  254. data/examples/singleview/racr_t.rb +0 -29
  255. data/examples/singleview/ragd_clec_t.rb +0 -47
  256. data/examples/singleview/ragd_t.rb +0 -28
  257. data/examples/singleview/rapc_t.rb +0 -27
  258. data/examples/singleview/rdfd_cmn_t.rb +0 -17
  259. data/examples/singleview/rdfd_t.rb +0 -16
  260. data/examples/singleview/receivable_type.rb +0 -49
  261. data/examples/singleview/receivable_type_history.rb +0 -25
  262. data/examples/singleview/reference_code.rb +0 -17
  263. data/examples/singleview/reference_type.rb +0 -32
  264. data/examples/singleview/release_info.rb +0 -10
  265. data/examples/singleview/report_reference_type.rb +0 -14
  266. data/examples/singleview/report_reference_type_defs.rb +0 -12
  267. data/examples/singleview/reprocessed_file.rb +0 -32
  268. data/examples/singleview/rgp_file.rb +0 -22
  269. data/examples/singleview/rgp_normalised_event.rb +0 -78
  270. data/examples/singleview/rmag_t.rb +0 -32
  271. data/examples/singleview/rpmr_t.rb +0 -27
  272. data/examples/singleview/rpsi_t.rb +0 -24
  273. data/examples/singleview/rser_t.rb +0 -13
  274. data/examples/singleview/rshu_cmn_t.rb +0 -31
  275. data/examples/singleview/schedule.rb +0 -91
  276. data/examples/singleview/schedule_task_type.rb +0 -43
  277. data/examples/singleview/service.rb +0 -88
  278. data/examples/singleview/service_bill_run_t.rb +0 -12
  279. data/examples/singleview/service_charge_category.rb +0 -22
  280. data/examples/singleview/service_da.rb +0 -11
  281. data/examples/singleview/service_da_array.rb +0 -35
  282. data/examples/singleview/service_duplicate.rb +0 -4
  283. data/examples/singleview/service_history.rb +0 -59
  284. data/examples/singleview/service_type.rb +0 -54
  285. data/examples/singleview/service_type_cc.rb +0 -18
  286. data/examples/singleview/service_type_da.rb +0 -8
  287. data/examples/singleview/service_type_equip_type.rb +0 -11
  288. data/examples/singleview/subtotal.rb +0 -48
  289. data/examples/singleview/subtotal_history.rb +0 -59
  290. data/examples/singleview/subtotal_rating_delta.rb +0 -20
  291. data/examples/singleview/subtotal_rating_value.rb +0 -21
  292. data/examples/singleview/subtotal_term.rb +0 -16
  293. data/examples/singleview/subtotal_value.rb +0 -18
  294. data/examples/singleview/summary_of_change.rb +0 -31
  295. data/examples/singleview/summary_of_change_ev.rb +0 -18
  296. data/examples/singleview/summary_of_change_view.rb +0 -22
  297. data/examples/singleview/t2_anumber_france.rb +0 -22
  298. data/examples/singleview/t2_anumber_italy.rb +0 -22
  299. data/examples/singleview/t2_anumber_netherlands.rb +0 -24
  300. data/examples/singleview/t2_anumber_portugal.rb +0 -22
  301. data/examples/singleview/t2_anumber_spain.rb +0 -22
  302. data/examples/singleview/t2_anumber_switzerland.rb +0 -24
  303. data/examples/singleview/t2_bankreference_austria.rb +0 -7
  304. data/examples/singleview/t2_bankreference_belgium.rb +0 -6
  305. data/examples/singleview/t2_bankreference_france.rb +0 -7
  306. data/examples/singleview/t2_bankreference_germany.rb +0 -7
  307. data/examples/singleview/t2_bankreference_italy.rb +0 -7
  308. data/examples/singleview/t2_bankreference_portugal.rb +0 -7
  309. data/examples/singleview/t2_cc_provrequests.rb +0 -19
  310. data/examples/singleview/t2_emf_info.rb +0 -12
  311. data/examples/singleview/t2_ev_column_label_mapping.rb +0 -9
  312. data/examples/singleview/t2_historytable.rb +0 -26
  313. data/examples/singleview/t2_inv_revoked_invoice.rb +0 -11
  314. data/examples/singleview/t2_inv_suppress_invoice.rb +0 -13
  315. data/examples/singleview/t2_national_number_plan.rb +0 -8
  316. data/examples/singleview/t2_pay_statement.rb +0 -28
  317. data/examples/singleview/t2_prov_req_action.rb +0 -22
  318. data/examples/singleview/t2_prov_request.rb +0 -32
  319. data/examples/singleview/t2_rep_brr_t.rb +0 -19
  320. data/examples/singleview/t2_rep_trr_t.rb +0 -19
  321. data/examples/singleview/t2_rep_ubr_t.rb +0 -19
  322. data/examples/singleview/t2_taxclass.rb +0 -8
  323. data/examples/singleview/t2_zipcode_austria.rb +0 -8
  324. data/examples/singleview/t2_zipcode_france.rb +0 -8
  325. data/examples/singleview/t2_zipcode_germany.rb +0 -8
  326. data/examples/singleview/t2_zipcode_hungary.rb +0 -8
  327. data/examples/singleview/t2_zipcode_luxembourg.rb +0 -8
  328. data/examples/singleview/t2_zipcode_netherlands.rb +0 -8
  329. data/examples/singleview/t2_zipcode_portugal.rb +0 -9
  330. data/examples/singleview/t2_zipcode_spain.rb +0 -8
  331. data/examples/singleview/t2_zipcode_switzerland.rb +0 -8
  332. data/examples/singleview/table_import_order.rb +0 -6
  333. data/examples/singleview/tariff.rb +0 -51
  334. data/examples/singleview/tariff_charge.rb +0 -33
  335. data/examples/singleview/tariff_charge_defn.rb +0 -18
  336. data/examples/singleview/tariff_condition_defn.rb +0 -19
  337. data/examples/singleview/tariff_history.rb +0 -70
  338. data/examples/singleview/tariff_recurring.rb +0 -36
  339. data/examples/singleview/task_queue.rb +0 -130
  340. data/examples/singleview/task_queue_result.rb +0 -10
  341. data/examples/singleview/template.rb +0 -18
  342. data/examples/singleview/template_history.rb +0 -30
  343. data/examples/singleview/template_reference.rb +0 -9
  344. data/examples/singleview/template_variable.rb +0 -10
  345. data/examples/singleview/trt_clec_treatment.rb +0 -13
  346. data/examples/singleview/variable_defn.rb +0 -48
  347. data/examples/singleview/variable_defn_dependency.rb +0 -11
  348. data/examples/singleview/variable_defn_direct.rb +0 -15
  349. data/examples/singleview/variable_defn_history.rb +0 -22
  350. data/examples/singleview/work_force.rb +0 -25
  351. data/examples/singleview/xpsi_addr_val_commtax21.rb +0 -24
  352. data/examples/singleview/xpsi_addr_val_msag.rb +0 -24
  353. data/examples/singleview/xpsi_addr_val_zip.rb +0 -14
  354. data/examples/singleview/xpsi_ne_batch.rb +0 -20
  355. data/examples/singleview/xpsi_product_batch.rb +0 -18
  356. data/examples/singleview/xpsi_product_status.rb +0 -14
  357. data/examples/singleview/xpsi_tax_error.rb +0 -34
  358. data/examples/singleview/xpsi_trt_revoke.rb +0 -68
  359. data/examples/singleview/xpsi_trt_revoke_prod_inst.rb +0 -12
  360. data/examples/singleview/xpsi_update_capture.rb +0 -35
@@ -1,20 +0,0 @@
1
- class ProductGroupHistory < ActiveRecord::Base
2
- belongs_to :product_group, :class_name => 'ProductGroup', :foreign_key => :product_group_id
3
- belongs_to :atlanta_operator, :class_name => 'AtlantaOperator', :foreign_key => :atlanta_operator_id
4
- belongs_to :atlanta_group, :class_name => 'AtlantaGroup', :foreign_key => :atlanta_group_id
5
- validates_presence_of :product_group_id
6
- validates_numericality_of :product_group_id, :allow_nil => false, :only_integer => true
7
- validates_presence_of :last_modified
8
- validates_presence_of :effective_start_date
9
- validates_presence_of :effective_end_date
10
- validates_presence_of :product_group_name
11
- validates_length_of :product_group_name, :allow_nil => false, :maximum => 30
12
- validates_presence_of :description
13
- validates_length_of :description, :allow_nil => false, :maximum => 255
14
- validates_numericality_of :parent_product_group_id, :allow_nil => true, :only_integer => true
15
- validates_presence_of :atlanta_operator_id
16
- validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
17
- validates_presence_of :atlanta_group_id
18
- validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
19
- validates_numericality_of :qualification_expr_list_id, :allow_nil => true, :only_integer => true
20
- end
@@ -1,35 +0,0 @@
1
- class ProductHistory < ActiveRecord::Base
2
- belongs_to :product, :class_name => 'Product', :foreign_key => :product_id
3
- belongs_to :atlanta_operator, :class_name => 'AtlantaOperator', :foreign_key => :atlanta_operator_id
4
- belongs_to :atlanta_group, :class_name => 'AtlantaGroup', :foreign_key => :atlanta_group_id
5
- belongs_to :icon, :class_name => 'Icon', :foreign_key => :icon_id
6
- belongs_to :contract_type, :class_name => 'ContractType', :foreign_key => :contract_type_id
7
- validates_presence_of :product_id
8
- validates_numericality_of :product_id, :allow_nil => false, :only_integer => true
9
- validates_presence_of :last_modified
10
- validates_presence_of :effective_start_date
11
- validates_presence_of :effective_end_date
12
- validates_presence_of :atlanta_operator_id
13
- validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
14
- validates_presence_of :atlanta_group_id
15
- validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
16
- validates_presence_of :product_name
17
- validates_length_of :product_name, :allow_nil => false, :maximum => 60
18
- validates_presence_of :description
19
- validates_length_of :description, :allow_nil => false, :maximum => 255
20
- validates_presence_of :icon_id
21
- validates_numericality_of :icon_id, :allow_nil => false, :only_integer => true
22
- validates_presence_of :companion_ind_code
23
- validates_numericality_of :companion_ind_code, :allow_nil => false, :only_integer => true
24
- validates_presence_of :initial_status_code
25
- validates_numericality_of :initial_status_code, :allow_nil => false, :only_integer => true
26
- validates_numericality_of :default_work_force_id, :allow_nil => true, :only_integer => true
27
- validates_numericality_of :contract_type_id, :allow_nil => true, :only_integer => true
28
- validates_numericality_of :qualification_expr_list_id, :allow_nil => true, :only_integer => true
29
- validates_numericality_of :payment_account_type_id, :allow_nil => true, :only_integer => true
30
- validates_numericality_of :product_entity_validation_id, :allow_nil => true, :only_integer => true
31
- validates_numericality_of :prod_svc_entity_validation_id, :allow_nil => true, :only_integer => true
32
- validates_numericality_of :prod_eqp_entity_validation_id, :allow_nil => true, :only_integer => true
33
- validates_numericality_of :fac_grp_entity_validation_id, :allow_nil => true, :only_integer => true
34
- validates_numericality_of :multiple_ind_code, :allow_nil => true, :only_integer => true
35
- end
@@ -1,12 +0,0 @@
1
- class ProductInProductGroup < ActiveRecord::Base
2
- belongs_to :product_group, :class_name => 'ProductGroup', :foreign_key => :product_group_id
3
- belongs_to :product, :class_name => 'Product', :foreign_key => :product_id
4
- validates_presence_of :product_group_id
5
- validates_numericality_of :product_group_id, :allow_nil => false, :only_integer => true
6
- validates_presence_of :product_id
7
- validates_numericality_of :product_id, :allow_nil => false, :only_integer => true
8
- validates_presence_of :seqnr
9
- validates_numericality_of :seqnr, :allow_nil => false, :only_integer => true
10
- validates_presence_of :effective_start_date
11
- validates_presence_of :effective_end_date
12
- end
@@ -1,41 +0,0 @@
1
- class ProductInstance < ActiveRecord::Base
2
- belongs_to :product_instance, :class_name => 'ProductInstance', :foreign_key => :product_instance_id
3
- has_many :fac_group_instance_hists, :class_name => 'FacGroupInstanceHist', :foreign_key => :product_instance_id
4
- has_many :product_instances, :class_name => 'ProductInstance', :foreign_key => :product_instance_id
5
- has_many :product_instance_equips, :class_name => 'ProductInstanceEquip', :foreign_key => :product_instance_id
6
- has_many :product_instance_histories, :class_name => 'ProductInstanceHistory', :foreign_key => :product_instance_id
7
- has_many :product_instance_services, :class_name => 'ProductInstanceService', :foreign_key => :product_instance_id
8
- has_many :rgp_normalised_events, :class_name => 'RgpNormalisedEvent', :foreign_key => :product_instance_id
9
- has_many :rpsi_ts, :class_name => 'RpsiT', :foreign_key => :product_instance_id
10
- has_many :t2_prov_requests, :class_name => 'T2ProvRequest', :foreign_key => :product_instance_id
11
- has_many :xpsi_product_batches, :class_name => 'XpsiProductBatch', :foreign_key => :product_instance_id
12
- has_many :xpsi_product_statuses, :class_name => 'XpsiProductStatus', :foreign_key => :product_instance_id
13
- has_many :xpsi_trt_revoke_prod_insts, :class_name => 'XpsiTrtRevokeProdInst', :foreign_key => :product_instance_id
14
- has_many :fac_group_instances, :through => fac_group_instance_hists
15
- has_many :facility_groups, :through => fac_group_instance_hists
16
- has_many :equipment, :through => product_instance_equips
17
- has_many :product_service_types, :through => product_instance_equips
18
- has_many :customer_nodes, :through => product_instance_histories
19
- has_many :atlanta_operators, :through => product_instance_histories
20
- has_many :products, :through => product_instance_histories
21
- has_many :contracts, :through => product_instance_histories
22
- has_many :products, :through => product_instance_services
23
- has_many :services, :through => product_instance_services
24
- has_many :normalised_event_types, :through => rgp_normalised_events
25
- has_many :customer_nodes, :through => rgp_normalised_events
26
- has_many :currencies, :through => rgp_normalised_events
27
- has_many :fac_group_instances, :through => rgp_normalised_events
28
- has_many :tariffs, :through => rgp_normalised_events
29
- has_many :equipment, :through => rgp_normalised_events
30
- has_many :services, :through => rgp_normalised_events
31
- has_many :bill_runs, :through => rgp_normalised_events
32
- has_many :rgp_files, :through => rgp_normalised_events
33
- has_many :customer_nodes, :through => rpsi_ts
34
- has_many :task_queues, :through => rpsi_ts
35
- has_many :equipment, :through => rpsi_ts
36
- has_many :services, :through => rpsi_ts
37
- has_many :t2_prov_requests, :through => t2_prov_requests
38
- has_many :products, :through => t2_prov_requests
39
- validates_presence_of :product_instance_id
40
- validates_numericality_of :product_instance_id, :allow_nil => false, :only_integer => true
41
- end
@@ -1,21 +0,0 @@
1
- class ProductInstanceEquip < ActiveRecord::Base
2
- belongs_to :product_instance, :class_name => 'ProductInstance', :foreign_key => :product_instance_id
3
- belongs_to :product_service_type, :class_name => 'ProductServiceType', :foreign_key => :product_service_type_id
4
- belongs_to :equipment, :class_name => 'Equipment', :foreign_key => :equipment_id
5
- validates_presence_of :product_instance_id
6
- validates_numericality_of :product_instance_id, :allow_nil => false, :only_integer => true
7
- validates_presence_of :effective_start_date
8
- validates_presence_of :effective_end_date
9
- validates_presence_of :product_service_type_id
10
- validates_numericality_of :product_service_type_id, :allow_nil => false, :only_integer => true
11
- validates_presence_of :service_item_seqnr
12
- validates_numericality_of :service_item_seqnr, :allow_nil => false, :only_integer => true
13
- validates_presence_of :service_range_seqnr
14
- validates_numericality_of :service_range_seqnr, :allow_nil => false, :only_integer => true
15
- validates_presence_of :equipment_item_seqnr
16
- validates_numericality_of :equipment_item_seqnr, :allow_nil => false, :only_integer => true
17
- validates_presence_of :equipment_range_seqnr
18
- validates_numericality_of :equipment_range_seqnr, :allow_nil => false, :only_integer => true
19
- validates_numericality_of :equipment_id, :allow_nil => true, :only_integer => true
20
- validates_numericality_of :uncompleted_ind_code, :allow_nil => true, :only_integer => true
21
- end
@@ -1,37 +0,0 @@
1
- class ProductInstanceHistory < ActiveRecord::Base
2
- belongs_to :product_instance, :class_name => 'ProductInstance', :foreign_key => :product_instance_id
3
- belongs_to :atlanta_operator, :class_name => 'AtlantaOperator', :foreign_key => :atlanta_operator_id
4
- belongs_to :product, :class_name => 'Product', :foreign_key => :product_id
5
- belongs_to :customer_node, :class_name => 'CustomerNode', :foreign_key => :customer_node_id
6
- belongs_to :contract, :class_name => 'Contract', :foreign_key => :contract_id
7
- validates_presence_of :product_instance_id
8
- validates_numericality_of :product_instance_id, :allow_nil => false, :only_integer => true
9
- validates_presence_of :last_modified
10
- validates_presence_of :atlanta_operator_id
11
- validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
12
- validates_presence_of :effective_start_date
13
- validates_presence_of :effective_end_date
14
- validates_presence_of :product_id
15
- validates_numericality_of :product_id, :allow_nil => false, :only_integer => true
16
- validates_presence_of :product_instance_status_code
17
- validates_numericality_of :product_instance_status_code, :allow_nil => false, :only_integer => true
18
- validates_presence_of :customer_node_id
19
- validates_numericality_of :customer_node_id, :allow_nil => false, :only_integer => true
20
- validates_numericality_of :base_product_instance_id, :allow_nil => true, :only_integer => true
21
- validates_numericality_of :contract_id, :allow_nil => true, :only_integer => true
22
- validates_numericality_of :from_product_instance_id, :allow_nil => true, :only_integer => true
23
- validates_numericality_of :from_product_id, :allow_nil => true, :only_integer => true
24
- validates_numericality_of :to_product_instance_id, :allow_nil => true, :only_integer => true
25
- validates_numericality_of :to_product_id, :allow_nil => true, :only_integer => true
26
- validates_numericality_of :uncompleted_ind_code, :allow_nil => true, :only_integer => true
27
- validates_length_of :general_1, :allow_nil => true, :maximum => 255
28
- validates_length_of :general_2, :allow_nil => true, :maximum => 255
29
- validates_length_of :general_3, :allow_nil => true, :maximum => 255
30
- validates_length_of :general_4, :allow_nil => true, :maximum => 255
31
- validates_length_of :general_5, :allow_nil => true, :maximum => 255
32
- validates_length_of :general_6, :allow_nil => true, :maximum => 255
33
- validates_length_of :general_7, :allow_nil => true, :maximum => 255
34
- validates_length_of :general_8, :allow_nil => true, :maximum => 255
35
- validates_length_of :general_9, :allow_nil => true, :maximum => 255
36
- validates_length_of :general_10, :allow_nil => true, :maximum => 255
37
- end
@@ -1,17 +0,0 @@
1
- class ProductInstanceService < ActiveRecord::Base
2
- belongs_to :product_instance, :class_name => 'ProductInstance', :foreign_key => :product_instance_id
3
- belongs_to :product, :class_name => 'Product', :foreign_key => :product_id
4
- belongs_to :service, :class_name => 'Service', :foreign_key => :service_id
5
- validates_presence_of :product_instance_id
6
- validates_numericality_of :product_instance_id, :allow_nil => false, :only_integer => true
7
- validates_presence_of :effective_start_date
8
- validates_presence_of :effective_end_date
9
- validates_presence_of :service_item_seqnr
10
- validates_numericality_of :service_item_seqnr, :allow_nil => false, :only_integer => true
11
- validates_presence_of :service_range_seqnr
12
- validates_numericality_of :service_range_seqnr, :allow_nil => false, :only_integer => true
13
- validates_presence_of :product_id
14
- validates_numericality_of :product_id, :allow_nil => false, :only_integer => true
15
- validates_numericality_of :service_id, :allow_nil => true, :only_integer => true
16
- validates_numericality_of :uncompleted_ind_code, :allow_nil => true, :only_integer => true
17
- end
@@ -1,19 +0,0 @@
1
- class ProductPaymentItem < ActiveRecord::Base
2
- belongs_to :product, :class_name => 'Product', :foreign_key => :product_id
3
- validates_presence_of :product_id
4
- validates_numericality_of :product_id, :allow_nil => false, :only_integer => true
5
- validates_presence_of :last_modified
6
- validates_presence_of :effective_start_date
7
- validates_presence_of :effective_end_date
8
- validates_presence_of :seqnr
9
- validates_numericality_of :seqnr, :allow_nil => false, :only_integer => true
10
- validates_presence_of :description
11
- validates_length_of :description, :allow_nil => false, :maximum => 255
12
- validates_presence_of :label_expr
13
- validates_length_of :label_expr, :allow_nil => false, :maximum => 255
14
- validates_length_of :receivable_type_expr, :allow_nil => true, :maximum => 255
15
- validates_presence_of :amount_expr
16
- validates_length_of :amount_expr, :allow_nil => false, :maximum => 255
17
- validates_presence_of :suppress_zero_ind_code
18
- validates_numericality_of :suppress_zero_ind_code, :allow_nil => false, :only_integer => true
19
- end
@@ -1,32 +0,0 @@
1
- class ProductServiceType < ActiveRecord::Base
2
- belongs_to :product_service_type, :class_name => 'ProductServiceType', :foreign_key => :product_service_type_id
3
- belongs_to :product, :class_name => 'Product', :foreign_key => :product_id
4
- belongs_to :service_type, :class_name => 'ServiceType', :foreign_key => :service_type_id
5
- has_many :product_instance_equips, :class_name => 'ProductInstanceEquip', :foreign_key => :product_service_type_id
6
- has_many :product_service_types, :class_name => 'ProductServiceType', :foreign_key => :product_service_type_id
7
- has_many :product_service_type_equips, :class_name => 'ProductServiceTypeEquip', :foreign_key => :product_service_type_id
8
- has_many :equipment, :through => product_instance_equips
9
- has_many :product_instances, :through => product_instance_equips
10
- has_many :service_types, :through => product_service_types
11
- has_many :products, :through => product_service_types
12
- has_many :equipment_types, :through => product_service_type_equips
13
- validates_presence_of :product_service_type_id
14
- validates_numericality_of :product_service_type_id, :allow_nil => false, :only_integer => true
15
- validates_presence_of :effective_start_date
16
- validates_presence_of :effective_end_date
17
- validates_presence_of :product_id
18
- validates_numericality_of :product_id, :allow_nil => false, :only_integer => true
19
- validates_presence_of :service_item_seqnr
20
- validates_numericality_of :service_item_seqnr, :allow_nil => false, :only_integer => true
21
- validates_presence_of :creation_order
22
- validates_numericality_of :creation_order, :allow_nil => false, :only_integer => true
23
- validates_numericality_of :service_range_min, :allow_nil => true, :only_integer => true
24
- validates_numericality_of :service_range_max, :allow_nil => true, :only_integer => true
25
- validates_presence_of :service_type_id
26
- validates_numericality_of :service_type_id, :allow_nil => false, :only_integer => true
27
- validates_numericality_of :initial_service_status_code, :allow_nil => true, :only_integer => true
28
- validates_numericality_of :service_name_equipment_co, :allow_nil => true, :only_integer => true
29
- validates_numericality_of :service_name_serialnr_ind_code, :allow_nil => true, :only_integer => true
30
- validates_numericality_of :network_name_equipment_co, :allow_nil => true, :only_integer => true
31
- validates_numericality_of :network_name_serialnr_ind_code, :allow_nil => true, :only_integer => true
32
- end
@@ -1,20 +0,0 @@
1
- class ProductServiceTypeEquip < ActiveRecord::Base
2
- belongs_to :product_service_type, :class_name => 'ProductServiceType', :foreign_key => :product_service_type_id
3
- belongs_to :equipment_type, :class_name => 'EquipmentType', :foreign_key => :equipment_type_id
4
- validates_presence_of :product_service_type_id
5
- validates_numericality_of :product_service_type_id, :allow_nil => false, :only_integer => true
6
- validates_presence_of :effective_start_date
7
- validates_presence_of :effective_end_date
8
- validates_presence_of :equipment_item_seqnr
9
- validates_numericality_of :equipment_item_seqnr, :allow_nil => false, :only_integer => true
10
- validates_presence_of :last_modified
11
- validates_presence_of :creation_order
12
- validates_numericality_of :creation_order, :allow_nil => false, :only_integer => true
13
- validates_numericality_of :equipment_range_min, :allow_nil => true, :only_integer => true
14
- validates_numericality_of :equipment_range_max, :allow_nil => true, :only_integer => true
15
- validates_presence_of :equipment_type_id
16
- validates_numericality_of :equipment_type_id, :allow_nil => false, :only_integer => true
17
- validates_numericality_of :initial_equipment_status_code, :allow_nil => true, :only_integer => true
18
- validates_numericality_of :search_entity_validation_id, :allow_nil => true, :only_integer => true
19
- validates_numericality_of :max_rows_displayed, :allow_nil => true, :only_integer => true
20
- end
@@ -1,14 +0,0 @@
1
- class ProductSubtotal < ActiveRecord::Base
2
- belongs_to :product, :class_name => 'Product', :foreign_key => :product_id
3
- belongs_to :subtotal, :class_name => 'Subtotal', :foreign_key => :subtotal_id
4
- belongs_to :gl_code, :class_name => 'GlCode', :foreign_key => :gl_code_id
5
- validates_presence_of :product_id
6
- validates_numericality_of :product_id, :allow_nil => false, :only_integer => true
7
- validates_presence_of :effective_start_date
8
- validates_presence_of :effective_end_date
9
- validates_presence_of :subtotal_id
10
- validates_numericality_of :subtotal_id, :allow_nil => false, :only_integer => true
11
- validates_presence_of :default_invoice_txt
12
- validates_length_of :default_invoice_txt, :allow_nil => false, :maximum => 255
13
- validates_numericality_of :gl_code_id, :allow_nil => true, :only_integer => true
14
- end
@@ -1,16 +0,0 @@
1
- class ProductTariff < ActiveRecord::Base
2
- belongs_to :product, :class_name => 'Product', :foreign_key => :product_id
3
- belongs_to :tariff, :class_name => 'Tariff', :foreign_key => :tariff_id
4
- belongs_to :charge_category, :class_name => 'ChargeCategory', :foreign_key => :charge_category_id
5
- validates_presence_of :product_id
6
- validates_numericality_of :product_id, :allow_nil => false, :only_integer => true
7
- validates_presence_of :effective_start_date
8
- validates_presence_of :effective_end_date
9
- validates_presence_of :tariff_id
10
- validates_numericality_of :tariff_id, :allow_nil => false, :only_integer => true
11
- validates_presence_of :default_invoice_txt
12
- validates_length_of :default_invoice_txt, :allow_nil => false, :maximum => 255
13
- validates_presence_of :charge_category_id
14
- validates_numericality_of :charge_category_id, :allow_nil => false, :only_integer => true
15
- validates_numericality_of :priority, :allow_nil => true, :only_integer => true
16
- end
@@ -1,12 +0,0 @@
1
- class RacrClecT1 < ActiveRecord::Base
2
- belongs_to :task_queue, :class_name => 'TaskQueue', :foreign_key => :task_queue_id
3
- belongs_to :account, :class_name => 'Account', :foreign_key => :account_id
4
- validates_presence_of :task_queue_id
5
- validates_numericality_of :task_queue_id, :allow_nil => false, :only_integer => true
6
- validates_presence_of :process_id
7
- validates_numericality_of :process_id, :allow_nil => false, :only_integer => true
8
- validates_presence_of :account_id
9
- validates_numericality_of :account_id, :allow_nil => false, :only_integer => true
10
- validates_presence_of :opening_balance
11
- validates_numericality_of :opening_balance, :allow_nil => false
12
- end
@@ -1,12 +0,0 @@
1
- class RacrClecT2 < ActiveRecord::Base
2
- belongs_to :task_queue, :class_name => 'TaskQueue', :foreign_key => :task_queue_id
3
- belongs_to :account, :class_name => 'Account', :foreign_key => :account_id
4
- validates_presence_of :task_queue_id
5
- validates_numericality_of :task_queue_id, :allow_nil => false, :only_integer => true
6
- validates_presence_of :process_id
7
- validates_numericality_of :process_id, :allow_nil => false, :only_integer => true
8
- validates_presence_of :account_id
9
- validates_numericality_of :account_id, :allow_nil => false, :only_integer => true
10
- validates_presence_of :closing_balance
11
- validates_numericality_of :closing_balance, :allow_nil => false
12
- end
@@ -1,28 +0,0 @@
1
- class RacrClecT3 < ActiveRecord::Base
2
- belongs_to :task_queue, :class_name => 'TaskQueue', :foreign_key => :task_queue_id
3
- validates_presence_of :task_queue_id
4
- validates_numericality_of :task_queue_id, :allow_nil => false, :only_integer => true
5
- validates_presence_of :process_id
6
- validates_numericality_of :process_id, :allow_nil => false, :only_integer => true
7
- validates_presence_of :credit_class_desc
8
- validates_length_of :credit_class_desc, :allow_nil => false, :maximum => 40
9
- validates_presence_of :root_customer_name
10
- validates_length_of :root_customer_name, :allow_nil => false, :maximum => 80
11
- validates_length_of :customer_name, :allow_nil => true, :maximum => 80
12
- validates_presence_of :account_category_name
13
- validates_length_of :account_category_name, :allow_nil => false, :maximum => 15
14
- validates_presence_of :account_number
15
- validates_length_of :account_number, :allow_nil => false, :maximum => 30
16
- validates_presence_of :opening_balance
17
- validates_numericality_of :opening_balance, :allow_nil => false
18
- validates_presence_of :invoice_amount
19
- validates_numericality_of :invoice_amount, :allow_nil => false
20
- validates_presence_of :payment_amount
21
- validates_numericality_of :payment_amount, :allow_nil => false
22
- validates_presence_of :adjustment_amount
23
- validates_numericality_of :adjustment_amount, :allow_nil => false
24
- validates_presence_of :closing_balance
25
- validates_numericality_of :closing_balance, :allow_nil => false
26
- validates_presence_of :seqnr
27
- validates_numericality_of :seqnr, :allow_nil => false, :only_integer => true
28
- end
@@ -1,29 +0,0 @@
1
- class RacrT < ActiveRecord::Base
2
- belongs_to :task_queue, :class_name => 'TaskQueue', :foreign_key => :task_queue_id
3
- validates_presence_of :task_queue_id
4
- validates_numericality_of :task_queue_id, :allow_nil => false, :only_integer => true
5
- validates_presence_of :process_id
6
- validates_numericality_of :process_id, :allow_nil => false, :only_integer => true
7
- validates_presence_of :root_cus_node_name
8
- validates_length_of :root_cus_node_name, :allow_nil => false, :maximum => 200
9
- validates_presence_of :root_cus_node_id
10
- validates_numericality_of :root_cus_node_id, :allow_nil => false, :only_integer => true
11
- validates_presence_of :cus_node_name
12
- validates_length_of :cus_node_name, :allow_nil => false, :maximum => 200
13
- validates_presence_of :cus_node_id
14
- validates_numericality_of :cus_node_id, :allow_nil => false, :only_integer => true
15
- validates_presence_of :account_number
16
- validates_length_of :account_number, :allow_nil => false, :maximum => 30
17
- validates_presence_of :account_category
18
- validates_numericality_of :account_category, :allow_nil => false, :only_integer => true
19
- validates_presence_of :opening_balance
20
- validates_numericality_of :opening_balance, :allow_nil => false
21
- validates_presence_of :invoice_amount
22
- validates_numericality_of :invoice_amount, :allow_nil => false
23
- validates_presence_of :payment_amount
24
- validates_numericality_of :payment_amount, :allow_nil => false
25
- validates_presence_of :adjustment_amount
26
- validates_numericality_of :adjustment_amount, :allow_nil => false
27
- validates_presence_of :closing_balance
28
- validates_numericality_of :closing_balance, :allow_nil => false
29
- end
@@ -1,47 +0,0 @@
1
- class RagdClecT < ActiveRecord::Base
2
- belongs_to :task_queue, :class_name => 'TaskQueue', :foreign_key => :task_queue_id
3
- belongs_to :customer_node, :class_name => 'CustomerNode', :foreign_key => :customer_node_id
4
- validates_presence_of :task_queue_id
5
- validates_numericality_of :task_queue_id, :allow_nil => false, :only_integer => true
6
- validates_presence_of :process_id
7
- validates_numericality_of :process_id, :allow_nil => false, :only_integer => true
8
- validates_presence_of :seqnr
9
- validates_numericality_of :seqnr, :allow_nil => false, :only_integer => true
10
- validates_presence_of :customer_type_name
11
- validates_length_of :customer_type_name, :allow_nil => false, :maximum => 80
12
- validates_presence_of :account_status
13
- validates_length_of :account_status, :allow_nil => false, :maximum => 80
14
- validates_length_of :credit_class, :allow_nil => true, :maximum => 40
15
- validates_length_of :credit_limit, :allow_nil => true, :maximum => 20
16
- validates_presence_of :root_node_id
17
- validates_numericality_of :root_node_id, :allow_nil => false, :only_integer => true
18
- validates_presence_of :root_node_name
19
- validates_length_of :root_node_name, :allow_nil => false, :maximum => 80
20
- validates_presence_of :customer_node_id
21
- validates_numericality_of :customer_node_id, :allow_nil => false, :only_integer => true
22
- validates_presence_of :node_name
23
- validates_length_of :node_name, :allow_nil => false, :maximum => 80
24
- validates_presence_of :account_name
25
- validates_length_of :account_name, :allow_nil => false, :maximum => 40
26
- validates_presence_of :amount_180
27
- validates_numericality_of :amount_180, :allow_nil => false
28
- validates_presence_of :amount_150
29
- validates_numericality_of :amount_150, :allow_nil => false
30
- validates_presence_of :amount_120
31
- validates_numericality_of :amount_120, :allow_nil => false
32
- validates_presence_of :amount_90
33
- validates_numericality_of :amount_90, :allow_nil => false
34
- validates_presence_of :amount_60
35
- validates_numericality_of :amount_60, :allow_nil => false
36
- validates_presence_of :amount_30
37
- validates_numericality_of :amount_30, :allow_nil => false
38
- validates_presence_of :amount_0
39
- validates_numericality_of :amount_0, :allow_nil => false
40
- validates_presence_of :amount_not_overdue
41
- validates_numericality_of :amount_not_overdue, :allow_nil => false
42
- validates_numericality_of :amount_total, :allow_nil => true
43
- validates_presence_of :amount_unallocated
44
- validates_numericality_of :amount_unallocated, :allow_nil => false
45
- validates_presence_of :max_days_overdue
46
- validates_numericality_of :max_days_overdue, :allow_nil => false, :only_integer => true
47
- end
@@ -1,28 +0,0 @@
1
- class RagdT < ActiveRecord::Base
2
- belongs_to :task_queue, :class_name => 'TaskQueue', :foreign_key => :task_queue_id
3
- belongs_to :customer_node, :class_name => 'CustomerNode', :foreign_key => :customer_node_id
4
- validates_presence_of :task_queue_id
5
- validates_numericality_of :task_queue_id, :allow_nil => false, :only_integer => true
6
- validates_presence_of :process_id
7
- validates_numericality_of :process_id, :allow_nil => false, :only_integer => true
8
- validates_presence_of :root_customer_node_id
9
- validates_numericality_of :root_customer_node_id, :allow_nil => false, :only_integer => true
10
- validates_presence_of :root_name
11
- validates_length_of :root_name, :allow_nil => false, :maximum => 200
12
- validates_presence_of :customer_node_id
13
- validates_numericality_of :customer_node_id, :allow_nil => false, :only_integer => true
14
- validates_presence_of :node_name
15
- validates_length_of :node_name, :allow_nil => false, :maximum => 200
16
- validates_presence_of :account_name
17
- validates_length_of :account_name, :allow_nil => false, :maximum => 30
18
- validates_numericality_of :amount_a, :allow_nil => true
19
- validates_numericality_of :amount_b, :allow_nil => true
20
- validates_numericality_of :amount_c, :allow_nil => true
21
- validates_numericality_of :amount_d, :allow_nil => true
22
- validates_numericality_of :amount_e, :allow_nil => true
23
- validates_numericality_of :amount_not_overdue, :allow_nil => true
24
- validates_numericality_of :amount_total, :allow_nil => true
25
- validates_numericality_of :amount_unallocated, :allow_nil => true
26
- validates_presence_of :max_days_overdue
27
- validates_numericality_of :max_days_overdue, :allow_nil => false, :only_integer => true
28
- end