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,17 +0,0 @@
1
- class AdjustmentInvoice < ActiveRecord::Base
2
- belongs_to :adjustment, :class_name => 'Adjustment', :foreign_key => :adjustment_id
3
- belongs_to :account, :class_name => 'Account', :foreign_key => :account_id
4
- belongs_to :invoice, :class_name => 'Invoice', :foreign_key => :invoice_id
5
- belongs_to :receivable_type, :class_name => 'ReceivableType', :foreign_key => :receivable_type_id
6
- validates_presence_of :adjustment_id
7
- validates_numericality_of :adjustment_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 :seqnr
11
- validates_numericality_of :seqnr, :allow_nil => false, :only_integer => true
12
- validates_presence_of :last_modified
13
- validates_numericality_of :invoice_id, :allow_nil => true, :only_integer => true
14
- validates_numericality_of :receivable_type_id, :allow_nil => true, :only_integer => true
15
- validates_presence_of :amount
16
- validates_numericality_of :amount, :allow_nil => false
17
- end
@@ -1,54 +0,0 @@
1
- class AdjustmentType < ActiveRecord::Base
2
- belongs_to :adjustment_type, :class_name => 'AdjustmentType', :foreign_key => :adjustment_type_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 :currency, :class_name => 'Currency', :foreign_key => :currency_id
6
- belongs_to :entity_validation, :class_name => 'EntityValidation', :foreign_key => :entity_validation_id
7
- has_many :adjustments, :class_name => 'Adjustment', :foreign_key => :adjustment_type_id
8
- has_many :adjustment_batches, :class_name => 'AdjustmentBatch', :foreign_key => :adjustment_type_id
9
- has_many :adjustment_types, :class_name => 'AdjustmentType', :foreign_key => :adjustment_type_id
10
- has_many :adjustment_type_variables, :class_name => 'AdjustmentTypeVariable', :foreign_key => :adjustment_type_id
11
- has_many :customer_queries, :through => adjustments
12
- has_many :currencies, :through => adjustments
13
- has_many :invoices, :through => adjustments
14
- has_many :adjustments, :through => adjustments
15
- has_many :atlanta_operators, :through => adjustments
16
- has_many :adjustment_batches, :through => adjustments
17
- has_many :currencies, :through => adjustment_batches
18
- has_many :atlanta_operators, :through => adjustment_batches
19
- has_many :adjustment_batches, :through => adjustment_batches
20
- has_many :atlanta_groups, :through => adjustment_types
21
- has_many :currencies, :through => adjustment_types
22
- has_many :atlanta_operators, :through => adjustment_types
23
- has_many :entity_validations, :through => adjustment_types
24
- has_many :variable_defns, :through => adjustment_type_variables
25
- validates_presence_of :adjustment_type_id
26
- validates_numericality_of :adjustment_type_id, :allow_nil => false, :only_integer => true
27
- validates_presence_of :last_modified
28
- validates_presence_of :adjustment_type_name
29
- validates_length_of :adjustment_type_name, :allow_nil => false, :maximum => 40
30
- validates_presence_of :description
31
- validates_length_of :description, :allow_nil => false, :maximum => 255
32
- validates_presence_of :atlanta_operator_id
33
- validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
34
- validates_presence_of :atlanta_group_id
35
- validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
36
- validates_presence_of :default_adjustment_text
37
- validates_length_of :default_adjustment_text, :allow_nil => false, :maximum => 80
38
- validates_numericality_of :currency_id, :allow_nil => true, :only_integer => true
39
- validates_numericality_of :from_account_type_id, :allow_nil => true, :only_integer => true
40
- validates_numericality_of :from_gl_code_id, :allow_nil => true, :only_integer => true
41
- validates_numericality_of :from_account_id, :allow_nil => true, :only_integer => true
42
- validates_numericality_of :to_account_type_id, :allow_nil => true, :only_integer => true
43
- validates_numericality_of :to_gl_code_id, :allow_nil => true, :only_integer => true
44
- validates_numericality_of :from_adjust_gl_code_id, :allow_nil => true, :only_integer => true
45
- validates_numericality_of :to_adjust_gl_code_id, :allow_nil => true, :only_integer => true
46
- validates_presence_of :adjustment_format_expr
47
- validates_length_of :adjustment_format_expr, :allow_nil => false, :maximum => 255
48
- validates_presence_of :adjustment_batch_format_expr
49
- validates_length_of :adjustment_batch_format_expr, :allow_nil => false, :maximum => 255
50
- validates_numericality_of :allocation_function_defn_id, :allow_nil => true, :only_integer => true
51
- validates_numericality_of :adjust_function_defn_id, :allow_nil => true, :only_integer => true
52
- validates_numericality_of :entity_validation_id, :allow_nil => true, :only_integer => true
53
- validates_length_of :version_str, :allow_nil => true, :maximum => 255
54
- end
@@ -1,8 +0,0 @@
1
- class AdjustmentTypeVariable < ActiveRecord::Base
2
- belongs_to :adjustment_type, :class_name => 'AdjustmentType', :foreign_key => :adjustment_type_id
3
- belongs_to :variable_defn, :class_name => 'VariableDefn', :foreign_key => :variable_defn_id
4
- validates_presence_of :adjustment_type_id
5
- validates_numericality_of :adjustment_type_id, :allow_nil => false, :only_integer => true
6
- validates_presence_of :variable_defn_id
7
- validates_numericality_of :variable_defn_id, :allow_nil => false, :only_integer => true
8
- end
@@ -1,11 +0,0 @@
1
- class ArchiveLockT < ActiveRecord::Base
2
- belongs_to :task_queue, :class_name => 'TaskQueue', :foreign_key => :task_queue_id
3
- validates_presence_of :process_identifier
4
- validates_length_of :process_identifier, :allow_nil => false, :maximum => 80
5
- validates_presence_of :last_modified
6
- validates_length_of :archive_owner, :allow_nil => true, :maximum => 30
7
- validates_presence_of :user_name
8
- validates_length_of :user_name, :allow_nil => false, :maximum => 30
9
- validates_numericality_of :task_queue_id, :allow_nil => true, :only_integer => true
10
- validates_numericality_of :locked_ind_code, :allow_nil => true, :only_integer => true
11
- end
@@ -1,15 +0,0 @@
1
- class ArchiveResult < ActiveRecord::Base
2
- belongs_to :archive_result, :class_name => 'ArchiveResult', :foreign_key => :archive_result_id
3
- belongs_to :archive_type, :class_name => 'ArchiveType', :foreign_key => :archive_type_id
4
- belongs_to :task_queue, :class_name => 'TaskQueue', :foreign_key => :task_queue_id
5
- has_many :archive_results, :class_name => 'ArchiveResult', :foreign_key => :archive_result_id
6
- has_many :task_queues, :through => archive_results
7
- has_many :archive_types, :through => archive_results
8
- validates_presence_of :archive_result_id
9
- validates_numericality_of :archive_result_id, :allow_nil => false, :only_integer => true
10
- validates_numericality_of :archive_type_id, :allow_nil => true, :only_integer => true
11
- validates_numericality_of :task_queue_id, :allow_nil => true, :only_integer => true
12
- validates_presence_of :archive_date
13
- validates_length_of :where_clause, :allow_nil => true, :maximum => 2000
14
- validates_length_of :filename, :allow_nil => true, :maximum => 255
15
- end
@@ -1,31 +0,0 @@
1
- class ArchiveType < ActiveRecord::Base
2
- belongs_to :archive_type, :class_name => 'ArchiveType', :foreign_key => :archive_type_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
- has_many :archive_results, :class_name => 'ArchiveResult', :foreign_key => :archive_type_id
6
- has_many :archive_types, :class_name => 'ArchiveType', :foreign_key => :archive_type_id
7
- has_many :archive_type_table_lists, :class_name => 'ArchiveTypeTableList', :foreign_key => :archive_type_id
8
- has_many :task_queues, :through => archive_results
9
- has_many :archive_results, :through => archive_results
10
- has_many :atlanta_groups, :through => archive_types
11
- has_many :atlanta_operators, :through => archive_types
12
- validates_presence_of :archive_type_id
13
- validates_numericality_of :archive_type_id, :allow_nil => false, :only_integer => true
14
- validates_presence_of :archive_type_name
15
- validates_length_of :archive_type_name, :allow_nil => false, :maximum => 30
16
- validates_presence_of :description
17
- validates_length_of :description, :allow_nil => false, :maximum => 255
18
- validates_presence_of :last_modified
19
- validates_presence_of :atlanta_operator_id
20
- validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
21
- validates_presence_of :atlanta_group_id
22
- validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
23
- validates_presence_of :date_ind_code
24
- validates_numericality_of :date_ind_code, :allow_nil => false, :only_integer => true
25
- validates_numericality_of :future_ind_code, :allow_nil => true, :only_integer => true
26
- validates_presence_of :archive_subtype_ind_code
27
- validates_numericality_of :archive_subtype_ind_code, :allow_nil => false, :only_integer => true
28
- validates_length_of :base_table, :allow_nil => true, :maximum => 30
29
- validates_length_of :where_clause, :allow_nil => true, :maximum => 2000
30
- validates_length_of :version_str, :allow_nil => true, :maximum => 255
31
- end
@@ -1,15 +0,0 @@
1
- class ArchiveTypeTableList < ActiveRecord::Base
2
- belongs_to :archive_type, :class_name => 'ArchiveType', :foreign_key => :archive_type_id
3
- validates_presence_of :archive_type_id
4
- validates_numericality_of :archive_type_id, :allow_nil => false, :only_integer => true
5
- validates_presence_of :seqnr
6
- validates_numericality_of :seqnr, :allow_nil => false, :only_integer => true
7
- validates_presence_of :last_modified
8
- validates_numericality_of :subtype_archive_type_id, :allow_nil => true, :only_integer => true
9
- validates_length_of :table_name, :allow_nil => true, :maximum => 30
10
- validates_length_of :where_clause, :allow_nil => true, :maximum => 2000
11
- validates_numericality_of :and_ind_code, :allow_nil => true, :only_integer => true
12
- validates_length_of :description, :allow_nil => true, :maximum => 255
13
- validates_numericality_of :disable_generation_ind_code, :allow_nil => true, :only_integer => true
14
- validates_length_of :hint_text, :allow_nil => true, :maximum => 255
15
- end
@@ -1,7 +0,0 @@
1
- class AtaiErrorName < ActiveRecord::Base
2
- belongs_to :error_message, :class_name => 'ErrorMessage', :foreign_key => :error_message_id
3
- validates_presence_of :error_message_id
4
- validates_numericality_of :error_message_id, :allow_nil => false, :only_integer => true
5
- validates_presence_of :error_name
6
- validates_length_of :error_name, :allow_nil => false, :maximum => 40
7
- end
@@ -1,23 +0,0 @@
1
- class AtlantaForm < ActiveRecord::Base
2
- belongs_to :atlanta_form, :class_name => 'AtlantaForm', :foreign_key => :atlanta_form_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
- has_many :atlanta_forms, :class_name => 'AtlantaForm', :foreign_key => :atlanta_form_id
6
- has_many :atlanta_form_fields, :class_name => 'AtlantaFormField', :foreign_key => :atlanta_form_id
7
- has_many :atlanta_groups, :through => atlanta_forms
8
- has_many :atlanta_operators, :through => atlanta_forms
9
- has_many :atlanta_help_entries, :through => atlanta_form_fields
10
- validates_presence_of :atlanta_form_id
11
- validates_numericality_of :atlanta_form_id, :allow_nil => false, :only_integer => true
12
- validates_presence_of :form_name
13
- validates_length_of :form_name, :allow_nil => false, :maximum => 40
14
- validates_presence_of :last_modified
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_length_of :description, :allow_nil => true, :maximum => 255
20
- validates_length_of :help_context, :allow_nil => true, :maximum => 80
21
- validates_length_of :help_file_name, :allow_nil => true, :maximum => 80
22
- validates_length_of :version_str, :allow_nil => true, :maximum => 255
23
- end
@@ -1,12 +0,0 @@
1
- class AtlantaFormField < ActiveRecord::Base
2
- belongs_to :atlanta_form, :class_name => 'AtlantaForm', :foreign_key => :atlanta_form_id
3
- belongs_to :atlanta_help_entry, :class_name => 'AtlantaHelpEntry', :foreign_key => :atlanta_help_entry_id
4
- validates_presence_of :atlanta_form_id
5
- validates_numericality_of :atlanta_form_id, :allow_nil => false, :only_integer => true
6
- validates_presence_of :field_name
7
- validates_length_of :field_name, :allow_nil => false, :maximum => 80
8
- validates_presence_of :seqnr
9
- validates_numericality_of :seqnr, :allow_nil => false, :only_integer => true
10
- validates_length_of :description, :allow_nil => true, :maximum => 255
11
- validates_numericality_of :atlanta_help_entry_id, :allow_nil => true, :only_integer => true
12
- end
@@ -1,285 +0,0 @@
1
- class AtlantaGroup < ActiveRecord::Base
2
- belongs_to :atlanta_group, :class_name => 'AtlantaGroup', :foreign_key => :atlanta_group_id
3
- belongs_to :atlanta_operator, :class_name => 'AtlantaOperator', :foreign_key => :atlanta_operator_id
4
- has_many :account_types, :class_name => 'AccountType', :foreign_key => :atlanta_group_id
5
- has_many :address_formats, :class_name => 'AddressFormat', :foreign_key => :atlanta_group_id
6
- has_many :adjustment_types, :class_name => 'AdjustmentType', :foreign_key => :atlanta_group_id
7
- has_many :archive_types, :class_name => 'ArchiveType', :foreign_key => :atlanta_group_id
8
- has_many :atlanta_forms, :class_name => 'AtlantaForm', :foreign_key => :atlanta_group_id
9
- has_many :atlanta_groups, :class_name => 'AtlantaGroup', :foreign_key => :atlanta_group_id
10
- has_many :atlanta_help_entries, :class_name => 'AtlantaHelpEntry', :foreign_key => :atlanta_group_id
11
- has_many :atlanta_operators, :class_name => 'AtlantaOperator', :foreign_key => :atlanta_group_id
12
- has_many :atlanta_profiles, :class_name => 'AtlantaProfile', :foreign_key => :atlanta_group_id
13
- has_many :atlanta_profile_group_maps, :class_name => 'AtlantaProfileGroupMap', :foreign_key => :atlanta_group_id
14
- has_many :atlanta_roles, :class_name => 'AtlantaRole', :foreign_key => :atlanta_group_id
15
- has_many :atlanta_table_partitions, :class_name => 'AtlantaTablePartition', :foreign_key => :atlanta_group_id
16
- has_many :attribute_types, :class_name => 'AttributeType', :foreign_key => :atlanta_group_id
17
- has_many :bill_runs, :class_name => 'BillRun', :foreign_key => :atlanta_group_id
18
- has_many :bill_run_types, :class_name => 'BillRunType', :foreign_key => :atlanta_group_id
19
- has_many :charge_categories, :class_name => 'ChargeCategory', :foreign_key => :atlanta_group_id
20
- has_many :charge_output_defn_histories, :class_name => 'ChargeOutputDefnHistory', :foreign_key => :atlanta_group_id
21
- has_many :configuration_items, :class_name => 'ConfigurationItem', :foreign_key => :atlanta_group_id
22
- has_many :configuration_item_types, :class_name => 'ConfigurationItemType', :foreign_key => :atlanta_group_id
23
- has_many :contract_histories, :class_name => 'ContractHistory', :foreign_key => :atlanta_group_id
24
- has_many :contract_types, :class_name => 'ContractType', :foreign_key => :atlanta_group_id
25
- has_many :currency_histories, :class_name => 'CurrencyHistory', :foreign_key => :atlanta_group_id
26
- has_many :customer_node_histories, :class_name => 'CustomerNodeHistory', :foreign_key => :atlanta_group_id
27
- has_many :customer_node_types, :class_name => 'CustomerNodeType', :foreign_key => :atlanta_group_id
28
- has_many :customer_queries, :class_name => 'CustomerQuery', :foreign_key => :atlanta_group_id
29
- has_many :customer_query_types, :class_name => 'CustomerQueryType', :foreign_key => :atlanta_group_id
30
- has_many :delete_cascade_groups, :class_name => 'DeleteCascadeGroup', :foreign_key => :atlanta_group_id
31
- has_many :derived_attribute_histories, :class_name => 'DerivedAttributeHistory', :foreign_key => :atlanta_group_id
32
- has_many :dil_histories, :class_name => 'DilHistory', :foreign_key => :atlanta_group_id
33
- has_many :entity_validations, :class_name => 'EntityValidation', :foreign_key => :atlanta_group_id
34
- has_many :equipment_histories, :class_name => 'EquipmentHistory', :foreign_key => :atlanta_group_id
35
- has_many :equipment_types, :class_name => 'EquipmentType', :foreign_key => :atlanta_group_id
36
- has_many :error_groups, :class_name => 'ErrorGroup', :foreign_key => :atlanta_group_id
37
- has_many :error_messages, :class_name => 'ErrorMessage', :foreign_key => :atlanta_group_id
38
- has_many :facility_group_histories, :class_name => 'FacilityGroupHistory', :foreign_key => :atlanta_group_id
39
- has_many :function_defn_histories, :class_name => 'FunctionDefnHistory', :foreign_key => :atlanta_group_id
40
- has_many :function_roles, :class_name => 'FunctionRole', :foreign_key => :atlanta_group_id
41
- has_many :gl_code_histories, :class_name => 'GlCodeHistory', :foreign_key => :atlanta_group_id
42
- has_many :icons, :class_name => 'Icon', :foreign_key => :atlanta_group_id
43
- has_many :invoice_format_histories, :class_name => 'InvoiceFormatHistory', :foreign_key => :atlanta_group_id
44
- has_many :invoice_message_histories, :class_name => 'InvoiceMessageHistory', :foreign_key => :atlanta_group_id
45
- has_many :invoice_type_histories, :class_name => 'InvoiceTypeHistory', :foreign_key => :atlanta_group_id
46
- has_many :isp_email_addresses, :class_name => 'IspEmailAddress', :foreign_key => :atlanta_group_id
47
- has_many :normalised_event_ft_hists, :class_name => 'NormalisedEventFtHist', :foreign_key => :atlanta_group_id
48
- has_many :normalised_event_types, :class_name => 'NormalisedEventType', :foreign_key => :atlanta_group_id
49
- has_many :output_devices, :class_name => 'OutputDevice', :foreign_key => :atlanta_group_id
50
- has_many :output_methods, :class_name => 'OutputMethod', :foreign_key => :atlanta_group_id
51
- has_many :output_method_types, :class_name => 'OutputMethodType', :foreign_key => :atlanta_group_id
52
- has_many :payment_types, :class_name => 'PaymentType', :foreign_key => :atlanta_group_id
53
- has_many :person_histories, :class_name => 'PersonHistory', :foreign_key => :atlanta_group_id
54
- has_many :person_types, :class_name => 'PersonType', :foreign_key => :atlanta_group_id
55
- has_many :product_group_histories, :class_name => 'ProductGroupHistory', :foreign_key => :atlanta_group_id
56
- has_many :product_histories, :class_name => 'ProductHistory', :foreign_key => :atlanta_group_id
57
- has_many :receivable_type_histories, :class_name => 'ReceivableTypeHistory', :foreign_key => :atlanta_group_id
58
- has_many :reference_types, :class_name => 'ReferenceType', :foreign_key => :atlanta_group_id
59
- has_many :schedules, :class_name => 'Schedule', :foreign_key => :atlanta_group_id
60
- has_many :schedule_task_types, :class_name => 'ScheduleTaskType', :foreign_key => :atlanta_group_id
61
- has_many :service_types, :class_name => 'ServiceType', :foreign_key => :atlanta_group_id
62
- has_many :subtotal_histories, :class_name => 'SubtotalHistory', :foreign_key => :atlanta_group_id
63
- has_many :summary_of_change_views, :class_name => 'SummaryOfChangeView', :foreign_key => :atlanta_group_id
64
- has_many :tariff_histories, :class_name => 'TariffHistory', :foreign_key => :atlanta_group_id
65
- has_many :task_queues, :class_name => 'TaskQueue', :foreign_key => :atlanta_group_id
66
- has_many :template_histories, :class_name => 'TemplateHistory', :foreign_key => :atlanta_group_id
67
- has_many :variable_defn_histories, :class_name => 'VariableDefnHistory', :foreign_key => :atlanta_group_id
68
- has_many :work_forces, :class_name => 'WorkForce', :foreign_key => :atlanta_group_id
69
- has_many :currencies, :through => account_types
70
- has_many :atlanta_operators, :through => account_types
71
- has_many :invoice_types, :through => account_types
72
- has_many :account_types, :through => account_types
73
- has_many :address_formats, :through => address_formats
74
- has_many :atlanta_operators, :through => address_formats
75
- has_many :entity_validations, :through => address_formats
76
- has_many :currencies, :through => adjustment_types
77
- has_many :atlanta_operators, :through => adjustment_types
78
- has_many :adjustment_types, :through => adjustment_types
79
- has_many :entity_validations, :through => adjustment_types
80
- has_many :atlanta_operators, :through => archive_types
81
- has_many :archive_types, :through => archive_types
82
- has_many :atlanta_operators, :through => atlanta_forms
83
- has_many :atlanta_forms, :through => atlanta_forms
84
- has_many :atlanta_operators, :through => atlanta_groups
85
- has_many :atlanta_operators, :through => atlanta_help_entries
86
- has_many :atlanta_help_entries, :through => atlanta_help_entries
87
- has_many :atlanta_operators, :through => atlanta_operators
88
- has_many :atlanta_profiles, :through => atlanta_operators
89
- has_many :people, :through => atlanta_operators
90
- has_many :atlanta_operators, :through => atlanta_profiles
91
- has_many :atlanta_profiles, :through => atlanta_profiles
92
- has_many :atlanta_profiles, :through => atlanta_profile_group_maps
93
- has_many :atlanta_operators, :through => atlanta_roles
94
- has_many :atlanta_roles, :through => atlanta_roles
95
- has_many :task_queues, :through => atlanta_table_partitions
96
- has_many :atlanta_operators, :through => atlanta_table_partitions
97
- has_many :atlanta_table_partitions, :through => atlanta_table_partitions
98
- has_many :schedules, :through => atlanta_table_partitions
99
- has_many :attribute_types, :through => attribute_types
100
- has_many :reference_types, :through => attribute_types
101
- has_many :atlanta_operators, :through => attribute_types
102
- has_many :atlanta_help_entries, :through => attribute_types
103
- has_many :bill_run_types, :through => bill_runs
104
- has_many :error_messages, :through => bill_runs
105
- has_many :atlanta_operators, :through => bill_runs
106
- has_many :bill_runs, :through => bill_runs
107
- has_many :currencies, :through => bill_run_types
108
- has_many :bill_run_types, :through => bill_run_types
109
- has_many :atlanta_operators, :through => bill_run_types
110
- has_many :atlanta_operators, :through => charge_categories
111
- has_many :charge_categories, :through => charge_categories
112
- has_many :atlanta_operators, :through => charge_output_defn_histories
113
- has_many :charge_output_defns, :through => charge_output_defn_histories
114
- has_many :expression_lists, :through => charge_output_defn_histories
115
- has_many :atlanta_operators, :through => configuration_items
116
- has_many :configuration_item_types, :through => configuration_items
117
- has_many :configuration_items, :through => configuration_items
118
- has_many :atlanta_operators, :through => configuration_item_types
119
- has_many :configuration_item_types, :through => configuration_item_types
120
- has_many :customer_nodes, :through => contract_histories
121
- has_many :contract_types, :through => contract_histories
122
- has_many :atlanta_operators, :through => contract_histories
123
- has_many :contracts, :through => contract_histories
124
- has_many :people, :through => contract_histories
125
- has_many :icons, :through => contract_types
126
- has_many :contract_types, :through => contract_types
127
- has_many :atlanta_operators, :through => contract_types
128
- has_many :entity_validations, :through => contract_types
129
- has_many :currencies, :through => currency_histories
130
- has_many :atlanta_operators, :through => currency_histories
131
- has_many :customer_nodes, :through => customer_node_histories
132
- has_many :currencies, :through => customer_node_histories
133
- has_many :atlanta_operators, :through => customer_node_histories
134
- has_many :customer_node_types, :through => customer_node_histories
135
- has_many :schedules, :through => customer_node_histories
136
- has_many :gl_codes, :through => customer_node_histories
137
- has_many :people, :through => customer_node_histories
138
- has_many :icons, :through => customer_node_types
139
- has_many :address_formats, :through => customer_node_types
140
- has_many :atlanta_operators, :through => customer_node_types
141
- has_many :customer_node_types, :through => customer_node_types
142
- has_many :invoice_formats, :through => customer_node_types
143
- has_many :gl_codes, :through => customer_node_types
144
- has_many :customer_nodes, :through => customer_queries
145
- has_many :customer_query_types, :through => customer_queries
146
- has_many :customer_queries, :through => customer_queries
147
- has_many :currencies, :through => customer_queries
148
- has_many :invoices, :through => customer_queries
149
- has_many :accounts, :through => customer_queries
150
- has_many :atlanta_operators, :through => customer_queries
151
- has_many :services, :through => customer_queries
152
- has_many :contracts, :through => customer_queries
153
- has_many :people, :through => customer_queries
154
- has_many :icons, :through => customer_query_types
155
- has_many :customer_query_types, :through => customer_query_types
156
- has_many :atlanta_operators, :through => customer_query_types
157
- has_many :atlanta_operators, :through => delete_cascade_groups
158
- has_many :delete_cascade_groups, :through => delete_cascade_groups
159
- has_many :atlanta_operators, :through => derived_attribute_histories
160
- has_many :derived_attributes, :through => derived_attribute_histories
161
- has_many :entity_validations, :through => derived_attribute_histories
162
- has_many :atlanta_operators, :through => dil_histories
163
- has_many :dils, :through => dil_histories
164
- has_many :atlanta_operators, :through => entity_validations
165
- has_many :entity_validations, :through => entity_validations
166
- has_many :atlanta_operators, :through => equipment_histories
167
- has_many :equipment_types, :through => equipment_histories
168
- has_many :equipment, :through => equipment_histories
169
- has_many :icons, :through => equipment_types
170
- has_many :address_formats, :through => equipment_types
171
- has_many :atlanta_operators, :through => equipment_types
172
- has_many :equipment_types, :through => equipment_types
173
- has_many :atlanta_operators, :through => error_groups
174
- has_many :atlanta_operators, :through => error_messages
175
- has_many :error_messages, :through => error_messages
176
- has_many :icons, :through => facility_group_histories
177
- has_many :atlanta_operators, :through => facility_group_histories
178
- has_many :facility_groups, :through => facility_group_histories
179
- has_many :atlanta_operators, :through => function_defn_histories
180
- has_many :function_defns, :through => function_defn_histories
181
- has_many :function_roles, :through => function_roles
182
- has_many :atlanta_operators, :through => function_roles
183
- has_many :atlanta_operators, :through => gl_code_histories
184
- has_many :gl_codes, :through => gl_code_histories
185
- has_many :icons, :through => icons
186
- has_many :atlanta_operators, :through => icons
187
- has_many :atlanta_operators, :through => invoice_format_histories
188
- has_many :templates, :through => invoice_format_histories
189
- has_many :invoice_formats, :through => invoice_format_histories
190
- has_many :entity_validations, :through => invoice_format_histories
191
- has_many :customer_nodes, :through => invoice_message_histories
192
- has_many :task_queues, :through => invoice_message_histories
193
- has_many :atlanta_operators, :through => invoice_message_histories
194
- has_many :invoice_formats, :through => invoice_message_histories
195
- has_many :account_types, :through => invoice_message_histories
196
- has_many :schedules, :through => invoice_message_histories
197
- has_many :invoice_messages, :through => invoice_message_histories
198
- has_many :atlanta_operators, :through => invoice_type_histories
199
- has_many :invoice_types, :through => invoice_type_histories
200
- has_many :expression_lists, :through => invoice_type_histories
201
- has_many :atlanta_operators, :through => isp_email_addresses
202
- has_many :atlanta_operators, :through => normalised_event_ft_hists
203
- has_many :normalised_event_fts, :through => normalised_event_ft_hists
204
- has_many :dils, :through => normalised_event_ft_hists
205
- has_many :expression_lists, :through => normalised_event_ft_hists
206
- has_many :normalised_event_types, :through => normalised_event_types
207
- has_many :atlanta_operators, :through => normalised_event_types
208
- has_many :atlanta_operators, :through => output_devices
209
- has_many :output_devices, :through => output_devices
210
- has_many :atlanta_operators, :through => output_methods
211
- has_many :output_method_types, :through => output_methods
212
- has_many :output_methods, :through => output_methods
213
- has_many :output_devices, :through => output_methods
214
- has_many :atlanta_operators, :through => output_method_types
215
- has_many :output_method_types, :through => output_method_types
216
- has_many :payment_types, :through => payment_types
217
- has_many :currencies, :through => payment_types
218
- has_many :atlanta_operators, :through => payment_types
219
- has_many :entity_validations, :through => payment_types
220
- has_many :atlanta_operators, :through => person_histories
221
- has_many :person_types, :through => person_histories
222
- has_many :people, :through => person_histories
223
- has_many :icons, :through => person_types
224
- has_many :address_formats, :through => person_types
225
- has_many :atlanta_operators, :through => person_types
226
- has_many :person_types, :through => person_types
227
- has_many :entity_validations, :through => person_types
228
- has_many :product_groups, :through => product_group_histories
229
- has_many :atlanta_operators, :through => product_group_histories
230
- has_many :contract_types, :through => product_histories
231
- has_many :icons, :through => product_histories
232
- has_many :atlanta_operators, :through => product_histories
233
- has_many :products, :through => product_histories
234
- has_many :accounts, :through => receivable_type_histories
235
- has_many :atlanta_operators, :through => receivable_type_histories
236
- has_many :receivable_types, :through => receivable_type_histories
237
- has_many :gl_codes, :through => receivable_type_histories
238
- has_many :reference_types, :through => reference_types
239
- has_many :atlanta_operators, :through => reference_types
240
- has_many :atlanta_operators, :through => schedules
241
- has_many :schedule_task_types, :through => schedules
242
- has_many :schedules, :through => schedules
243
- has_many :error_messages, :through => schedule_task_types
244
- has_many :atlanta_operators, :through => schedule_task_types
245
- has_many :schedule_task_types, :through => schedule_task_types
246
- has_many :entity_validations, :through => schedule_task_types
247
- has_many :icons, :through => service_types
248
- has_many :address_formats, :through => service_types
249
- has_many :atlanta_operators, :through => service_types
250
- has_many :service_types, :through => service_types
251
- has_many :gl_codes, :through => service_types
252
- has_many :subtotals, :through => subtotal_histories
253
- has_many :currencies, :through => subtotal_histories
254
- has_many :atlanta_operators, :through => subtotal_histories
255
- has_many :receivable_types, :through => subtotal_histories
256
- has_many :gl_codes, :through => subtotal_histories
257
- has_many :atlanta_operators, :through => summary_of_change_views
258
- has_many :summary_of_change_views, :through => summary_of_change_views
259
- has_many :currencies, :through => tariff_histories
260
- has_many :atlanta_operators, :through => tariff_histories
261
- has_many :tariffs, :through => tariff_histories
262
- has_many :charge_categories, :through => tariff_histories
263
- has_many :receivable_types, :through => tariff_histories
264
- has_many :atlanta_operators, :through => task_queues
265
- has_many :task_queues, :through => task_queues
266
- has_many :schedules, :through => task_queues
267
- has_many :atlanta_operators, :through => template_histories
268
- has_many :templates, :through => template_histories
269
- has_many :atlanta_operators, :through => variable_defn_histories
270
- has_many :variable_defns, :through => variable_defn_histories
271
- has_many :atlanta_operators, :through => work_forces
272
- has_many :work_forces, :through => work_forces
273
- validates_presence_of :atlanta_group_id
274
- validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
275
- validates_presence_of :atlanta_group_name
276
- validates_length_of :atlanta_group_name, :allow_nil => false, :maximum => 30
277
- validates_presence_of :description
278
- validates_length_of :description, :allow_nil => false, :maximum => 255
279
- validates_presence_of :last_modified
280
- validates_presence_of :atlanta_operator_id
281
- validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
282
- validates_presence_of :last_mod_atlanta_group_id
283
- validates_numericality_of :last_mod_atlanta_group_id, :allow_nil => false, :only_integer => true
284
- validates_length_of :version_str, :allow_nil => true, :maximum => 255
285
- end