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.
- data/History.txt +8 -0
- data/License.txt +20 -0
- data/Manifest.txt +81 -0
- data/{README → README.txt} +0 -0
- data/Rakefile +58 -59
- data/lib/activerecord/base.rb +0 -2
- data/lib/magic_model_generator.rb +0 -2
- data/lib/magic_model_generator/schema.rb +1 -5
- data/lib/magic_model_generator/validations.rb +1 -0
- data/lib/magic_model_generator/version.rb +1 -1
- data/scripts/txt2html +67 -0
- data/setup.rb +1585 -0
- data/tasks/build_db.rake +85 -0
- data/test/connections/native_db2/connection.rb +25 -0
- data/test/connections/native_firebird/connection.rb +26 -0
- data/test/connections/native_frontbase/connection.rb +27 -0
- data/test/connections/native_mysql/connection.rb +27 -0
- data/test/connections/native_openbase/connection.rb +21 -0
- data/test/connections/native_oracle/connection.rb +27 -0
- data/test/connections/native_postgresql/connection.rb +23 -0
- data/test/connections/native_sqlite/connection.rb +25 -0
- data/test/connections/native_sqlite3/connection.rb +25 -0
- data/test/connections/native_sqlite3/in_memory_connection.rb +18 -0
- data/test/connections/native_sqlserver/connection.rb +23 -0
- data/test/connections/native_sqlserver_odbc/connection.rb +25 -0
- data/test/connections/native_sybase/connection.rb +23 -0
- data/test/fixtures/db_definitions/db2.drop.sql +32 -0
- data/test/fixtures/db_definitions/db2.sql +231 -0
- data/test/fixtures/db_definitions/db22.drop.sql +2 -0
- data/test/fixtures/db_definitions/db22.sql +5 -0
- data/test/fixtures/db_definitions/firebird.drop.sql +63 -0
- data/test/fixtures/db_definitions/firebird.sql +304 -0
- data/test/fixtures/db_definitions/firebird2.drop.sql +2 -0
- data/test/fixtures/db_definitions/firebird2.sql +6 -0
- data/test/fixtures/db_definitions/frontbase.drop.sql +32 -0
- data/test/fixtures/db_definitions/frontbase.sql +268 -0
- data/test/fixtures/db_definitions/frontbase2.drop.sql +1 -0
- data/test/fixtures/db_definitions/frontbase2.sql +4 -0
- data/test/fixtures/db_definitions/mysql.drop.sql +32 -0
- data/test/fixtures/db_definitions/mysql.sql +234 -0
- data/test/fixtures/db_definitions/mysql2.drop.sql +2 -0
- data/test/fixtures/db_definitions/mysql2.sql +5 -0
- data/test/fixtures/db_definitions/openbase.drop.sql +2 -0
- data/test/fixtures/db_definitions/openbase.sql +302 -0
- data/test/fixtures/db_definitions/openbase2.drop.sql +2 -0
- data/test/fixtures/db_definitions/openbase2.sql +7 -0
- data/test/fixtures/db_definitions/oracle.drop.sql +65 -0
- data/test/fixtures/db_definitions/oracle.sql +325 -0
- data/test/fixtures/db_definitions/oracle2.drop.sql +2 -0
- data/test/fixtures/db_definitions/oracle2.sql +6 -0
- data/test/fixtures/db_definitions/postgresql.drop.sql +37 -0
- data/test/fixtures/db_definitions/postgresql.sql +247 -0
- data/test/fixtures/db_definitions/postgresql2.drop.sql +2 -0
- data/test/fixtures/db_definitions/postgresql2.sql +4 -0
- data/test/fixtures/db_definitions/schema.rb +74 -0
- data/test/fixtures/db_definitions/sqlite.drop.sql +32 -0
- data/test/fixtures/db_definitions/sqlite.sql +215 -0
- data/test/fixtures/db_definitions/sqlite2.drop.sql +2 -0
- data/test/fixtures/db_definitions/sqlite2.sql +5 -0
- data/test/fixtures/db_definitions/sqlserver.drop.sql +34 -0
- data/test/fixtures/db_definitions/sqlserver.sql +243 -0
- data/test/fixtures/db_definitions/sqlserver2.drop.sql +2 -0
- data/test/fixtures/db_definitions/sqlserver2.sql +5 -0
- data/test/fixtures/db_definitions/sybase.drop.sql +34 -0
- data/test/fixtures/db_definitions/sybase.sql +218 -0
- data/test/fixtures/db_definitions/sybase2.drop.sql +4 -0
- data/test/fixtures/db_definitions/sybase2.sql +5 -0
- data/test/{magic_model_generator_test.rb → test_magic_model_generator.rb} +1 -1
- data/test/test_rails_app/test/test_helper.rb +36 -0
- data/website/index.html +165 -0
- data/website/index.txt +83 -0
- data/website/javascripts/rounded_corners_lite.inc.js +285 -0
- data/website/stylesheets/screen.css +138 -0
- data/website/template.js +3 -0
- data/website/template.rhtml +53 -0
- metadata +96 -329
- data/examples/singleview/account.rb +0 -94
- data/examples/singleview/account_history.rb +0 -21
- data/examples/singleview/account_reservation.rb +0 -26
- data/examples/singleview/account_type.rb +0 -54
- data/examples/singleview/account_type_aging.rb +0 -17
- data/examples/singleview/account_type_variable.rb +0 -8
- data/examples/singleview/address.rb +0 -8
- data/examples/singleview/address_format.rb +0 -49
- data/examples/singleview/address_history.rb +0 -28
- data/examples/singleview/adjustment.rb +0 -97
- data/examples/singleview/adjustment_batch.rb +0 -42
- data/examples/singleview/adjustment_invoice.rb +0 -17
- data/examples/singleview/adjustment_type.rb +0 -54
- data/examples/singleview/adjustment_type_variable.rb +0 -8
- data/examples/singleview/archive_lock_t.rb +0 -11
- data/examples/singleview/archive_result.rb +0 -15
- data/examples/singleview/archive_type.rb +0 -31
- data/examples/singleview/archive_type_table_list.rb +0 -15
- data/examples/singleview/atai_error_name.rb +0 -7
- data/examples/singleview/atlanta_form.rb +0 -23
- data/examples/singleview/atlanta_form_field.rb +0 -12
- data/examples/singleview/atlanta_group.rb +0 -285
- data/examples/singleview/atlanta_help_entry.rb +0 -32
- data/examples/singleview/atlanta_operator.rb +0 -356
- data/examples/singleview/atlanta_profile.rb +0 -47
- data/examples/singleview/atlanta_profile_func_map.rb +0 -8
- data/examples/singleview/atlanta_profile_group_map.rb +0 -10
- data/examples/singleview/atlanta_profile_role_map.rb +0 -8
- data/examples/singleview/atlanta_profile_wf_map.rb +0 -10
- data/examples/singleview/atlanta_role.rb +0 -23
- data/examples/singleview/atlanta_table_partition.rb +0 -39
- data/examples/singleview/attribute_type.rb +0 -75
- data/examples/singleview/attribute_type_variable.rb +0 -8
- data/examples/singleview/bill_run.rb +0 -93
- data/examples/singleview/bill_run_operation.rb +0 -54
- data/examples/singleview/bill_run_type.rb +0 -39
- data/examples/singleview/bill_run_type_status.rb +0 -12
- data/examples/singleview/bill_run_type_task.rb +0 -12
- data/examples/singleview/cache.rb +0 -23
- data/examples/singleview/cache_field.rb +0 -13
- data/examples/singleview/can_act_charge.rb +0 -16
- data/examples/singleview/charge.rb +0 -67
- data/examples/singleview/charge_category.rb +0 -45
- data/examples/singleview/charge_output_defn.rb +0 -13
- data/examples/singleview/charge_output_defn_history.rb +0 -22
- data/examples/singleview/charge_output_defn_var.rb +0 -10
- data/examples/singleview/configuration_attr_type.rb +0 -22
- data/examples/singleview/configuration_attribute.rb +0 -11
- data/examples/singleview/configuration_item.rb +0 -26
- data/examples/singleview/configuration_item_type.rb +0 -29
- data/examples/singleview/contract.rb +0 -35
- data/examples/singleview/contract_history.rb +0 -48
- data/examples/singleview/contract_type.rb +0 -58
- data/examples/singleview/contract_type_product.rb +0 -11
- data/examples/singleview/conversion_rate.rb +0 -14
- data/examples/singleview/currency.rb +0 -118
- data/examples/singleview/currency_history.rb +0 -28
- data/examples/singleview/customer_contact.rb +0 -12
- data/examples/singleview/customer_node.rb +0 -166
- data/examples/singleview/customer_node_bill_run.rb +0 -12
- data/examples/singleview/customer_node_charge_cat.rb +0 -22
- data/examples/singleview/customer_node_correspond.rb +0 -12
- data/examples/singleview/customer_node_da.rb +0 -11
- data/examples/singleview/customer_node_da_array.rb +0 -35
- data/examples/singleview/customer_node_history.rb +0 -86
- data/examples/singleview/customer_node_inv_format.rb +0 -33
- data/examples/singleview/customer_node_type.rb +0 -89
- data/examples/singleview/customer_node_type_cc.rb +0 -18
- data/examples/singleview/customer_node_type_da.rb +0 -8
- data/examples/singleview/customer_node_type_var.rb +0 -8
- data/examples/singleview/customer_query.rb +0 -80
- data/examples/singleview/customer_query_progress.rb +0 -20
- data/examples/singleview/customer_query_type.rb +0 -49
- data/examples/singleview/customer_query_type_var.rb +0 -8
- data/examples/singleview/delete_cascade.rb +0 -13
- data/examples/singleview/delete_cascade_group.rb +0 -21
- data/examples/singleview/delete_constraint.rb +0 -9
- data/examples/singleview/derived_attribute.rb +0 -32
- data/examples/singleview/derived_attribute_array.rb +0 -32
- data/examples/singleview/derived_attribute_history.rb +0 -41
- data/examples/singleview/derived_attribute_index.rb +0 -13
- data/examples/singleview/derived_attribute_value.rb +0 -19
- data/examples/singleview/dil.rb +0 -18
- data/examples/singleview/dil_history.rb +0 -24
- data/examples/singleview/dil_reference.rb +0 -9
- data/examples/singleview/dil_validation_t.rb +0 -6
- data/examples/singleview/dil_variable.rb +0 -10
- data/examples/singleview/dunning_t.rb +0 -14
- data/examples/singleview/entity_mapping.rb +0 -11
- data/examples/singleview/entity_remap.rb +0 -22
- data/examples/singleview/entity_validation.rb +0 -70
- data/examples/singleview/entity_validation_list.rb +0 -15
- data/examples/singleview/entity_validation_variable.rb +0 -8
- data/examples/singleview/equipment.rb +0 -28
- data/examples/singleview/equipment_history.rb +0 -62
- data/examples/singleview/equipment_type.rb +0 -57
- data/examples/singleview/equipment_type_variable.rb +0 -8
- data/examples/singleview/error_group.rb +0 -18
- data/examples/singleview/error_message.rb +0 -65
- data/examples/singleview/evs_address_equiv.rb +0 -17
- data/examples/singleview/evs_alias.rb +0 -12
- data/examples/singleview/evs_attribute_type_key.rb +0 -7
- data/examples/singleview/evt_equipment_changeover.rb +0 -9
- data/examples/singleview/expression_list.rb +0 -27
- data/examples/singleview/expression_list_value.rb +0 -17
- data/examples/singleview/fac_group_compatibility.rb +0 -11
- data/examples/singleview/fac_group_instance.rb +0 -19
- data/examples/singleview/fac_group_instance_hist.rb +0 -16
- data/examples/singleview/facility.rb +0 -9
- data/examples/singleview/facility_group.rb +0 -21
- data/examples/singleview/facility_group_history.rb +0 -21
- data/examples/singleview/foreign_key.rb +0 -9
- data/examples/singleview/function_defn.rb +0 -16
- data/examples/singleview/function_defn_history.rb +0 -35
- data/examples/singleview/function_role.rb +0 -24
- data/examples/singleview/function_role_map.rb +0 -10
- data/examples/singleview/gl_code.rb +0 -65
- data/examples/singleview/gl_code_history.rb +0 -20
- data/examples/singleview/gl_upload.rb +0 -10
- data/examples/singleview/icon.rb +0 -64
- data/examples/singleview/inv_loop_t.rb +0 -4
- data/examples/singleview/inv_report_accounts_t.rb +0 -25
- data/examples/singleview/invoice.rb +0 -134
- data/examples/singleview/invoice_contents.rb +0 -14
- data/examples/singleview/invoice_format.rb +0 -31
- data/examples/singleview/invoice_format_history.rb +0 -29
- data/examples/singleview/invoice_message.rb +0 -17
- data/examples/singleview/invoice_message_history.rb +0 -31
- data/examples/singleview/invoice_message_variable.rb +0 -10
- data/examples/singleview/invoice_receivable_type.rb +0 -13
- data/examples/singleview/invoice_type.rb +0 -23
- data/examples/singleview/invoice_type_history.rb +0 -26
- data/examples/singleview/invoice_type_variable.rb +0 -10
- data/examples/singleview/isp_email_address.rb +0 -17
- data/examples/singleview/licence_current_values.rb +0 -12
- data/examples/singleview/menu_role_map.rb +0 -10
- data/examples/singleview/normalised_event.rb +0 -119
- data/examples/singleview/normalised_event_error.rb +0 -91
- data/examples/singleview/normalised_event_file.rb +0 -75
- data/examples/singleview/normalised_event_ft.rb +0 -18
- data/examples/singleview/normalised_event_ft_hist.rb +0 -25
- data/examples/singleview/normalised_event_ft_var.rb +0 -10
- data/examples/singleview/normalised_event_type.rb +0 -54
- data/examples/singleview/output_device.rb +0 -37
- data/examples/singleview/output_method.rb +0 -32
- data/examples/singleview/output_method_type.rb +0 -38
- data/examples/singleview/output_select.rb +0 -17
- data/examples/singleview/payment.rb +0 -102
- data/examples/singleview/payment_batch.rb +0 -43
- data/examples/singleview/payment_invoice.rb +0 -17
- data/examples/singleview/payment_item.rb +0 -15
- data/examples/singleview/payment_type.rb +0 -57
- data/examples/singleview/payment_type_variable.rb +0 -8
- data/examples/singleview/person.rb +0 -60
- data/examples/singleview/person_history.rb +0 -69
- data/examples/singleview/person_type.rb +0 -39
- data/examples/singleview/plan_table.rb +0 -27
- data/examples/singleview/product.rb +0 -45
- data/examples/singleview/product_compatibility.rb +0 -13
- data/examples/singleview/product_derived_attribute.rb +0 -10
- data/examples/singleview/product_facility_group.rb +0 -16
- data/examples/singleview/product_group.rb +0 -12
- data/examples/singleview/product_group_history.rb +0 -20
- data/examples/singleview/product_history.rb +0 -35
- data/examples/singleview/product_in_product_group.rb +0 -12
- data/examples/singleview/product_instance.rb +0 -41
- data/examples/singleview/product_instance_equip.rb +0 -21
- data/examples/singleview/product_instance_history.rb +0 -37
- data/examples/singleview/product_instance_service.rb +0 -17
- data/examples/singleview/product_payment_item.rb +0 -19
- data/examples/singleview/product_service_type.rb +0 -32
- data/examples/singleview/product_service_type_equip.rb +0 -20
- data/examples/singleview/product_subtotal.rb +0 -14
- data/examples/singleview/product_tariff.rb +0 -16
- data/examples/singleview/racr_clec_t1.rb +0 -12
- data/examples/singleview/racr_clec_t2.rb +0 -12
- data/examples/singleview/racr_clec_t3.rb +0 -28
- data/examples/singleview/racr_t.rb +0 -29
- data/examples/singleview/ragd_clec_t.rb +0 -47
- data/examples/singleview/ragd_t.rb +0 -28
- data/examples/singleview/rapc_t.rb +0 -27
- data/examples/singleview/rdfd_cmn_t.rb +0 -17
- data/examples/singleview/rdfd_t.rb +0 -16
- data/examples/singleview/receivable_type.rb +0 -49
- data/examples/singleview/receivable_type_history.rb +0 -25
- data/examples/singleview/reference_code.rb +0 -17
- data/examples/singleview/reference_type.rb +0 -32
- data/examples/singleview/release_info.rb +0 -10
- data/examples/singleview/report_reference_type.rb +0 -14
- data/examples/singleview/report_reference_type_defs.rb +0 -12
- data/examples/singleview/reprocessed_file.rb +0 -32
- data/examples/singleview/rgp_file.rb +0 -22
- data/examples/singleview/rgp_normalised_event.rb +0 -78
- data/examples/singleview/rmag_t.rb +0 -32
- data/examples/singleview/rpmr_t.rb +0 -27
- data/examples/singleview/rpsi_t.rb +0 -24
- data/examples/singleview/rser_t.rb +0 -13
- data/examples/singleview/rshu_cmn_t.rb +0 -31
- data/examples/singleview/schedule.rb +0 -91
- data/examples/singleview/schedule_task_type.rb +0 -43
- data/examples/singleview/service.rb +0 -88
- data/examples/singleview/service_bill_run_t.rb +0 -12
- data/examples/singleview/service_charge_category.rb +0 -22
- data/examples/singleview/service_da.rb +0 -11
- data/examples/singleview/service_da_array.rb +0 -35
- data/examples/singleview/service_duplicate.rb +0 -4
- data/examples/singleview/service_history.rb +0 -59
- data/examples/singleview/service_type.rb +0 -54
- data/examples/singleview/service_type_cc.rb +0 -18
- data/examples/singleview/service_type_da.rb +0 -8
- data/examples/singleview/service_type_equip_type.rb +0 -11
- data/examples/singleview/subtotal.rb +0 -48
- data/examples/singleview/subtotal_history.rb +0 -59
- data/examples/singleview/subtotal_rating_delta.rb +0 -20
- data/examples/singleview/subtotal_rating_value.rb +0 -21
- data/examples/singleview/subtotal_term.rb +0 -16
- data/examples/singleview/subtotal_value.rb +0 -18
- data/examples/singleview/summary_of_change.rb +0 -31
- data/examples/singleview/summary_of_change_ev.rb +0 -18
- data/examples/singleview/summary_of_change_view.rb +0 -22
- data/examples/singleview/t2_anumber_france.rb +0 -22
- data/examples/singleview/t2_anumber_italy.rb +0 -22
- data/examples/singleview/t2_anumber_netherlands.rb +0 -24
- data/examples/singleview/t2_anumber_portugal.rb +0 -22
- data/examples/singleview/t2_anumber_spain.rb +0 -22
- data/examples/singleview/t2_anumber_switzerland.rb +0 -24
- data/examples/singleview/t2_bankreference_austria.rb +0 -7
- data/examples/singleview/t2_bankreference_belgium.rb +0 -6
- data/examples/singleview/t2_bankreference_france.rb +0 -7
- data/examples/singleview/t2_bankreference_germany.rb +0 -7
- data/examples/singleview/t2_bankreference_italy.rb +0 -7
- data/examples/singleview/t2_bankreference_portugal.rb +0 -7
- data/examples/singleview/t2_cc_provrequests.rb +0 -19
- data/examples/singleview/t2_emf_info.rb +0 -12
- data/examples/singleview/t2_ev_column_label_mapping.rb +0 -9
- data/examples/singleview/t2_historytable.rb +0 -26
- data/examples/singleview/t2_inv_revoked_invoice.rb +0 -11
- data/examples/singleview/t2_inv_suppress_invoice.rb +0 -13
- data/examples/singleview/t2_national_number_plan.rb +0 -8
- data/examples/singleview/t2_pay_statement.rb +0 -28
- data/examples/singleview/t2_prov_req_action.rb +0 -22
- data/examples/singleview/t2_prov_request.rb +0 -32
- data/examples/singleview/t2_rep_brr_t.rb +0 -19
- data/examples/singleview/t2_rep_trr_t.rb +0 -19
- data/examples/singleview/t2_rep_ubr_t.rb +0 -19
- data/examples/singleview/t2_taxclass.rb +0 -8
- data/examples/singleview/t2_zipcode_austria.rb +0 -8
- data/examples/singleview/t2_zipcode_france.rb +0 -8
- data/examples/singleview/t2_zipcode_germany.rb +0 -8
- data/examples/singleview/t2_zipcode_hungary.rb +0 -8
- data/examples/singleview/t2_zipcode_luxembourg.rb +0 -8
- data/examples/singleview/t2_zipcode_netherlands.rb +0 -8
- data/examples/singleview/t2_zipcode_portugal.rb +0 -9
- data/examples/singleview/t2_zipcode_spain.rb +0 -8
- data/examples/singleview/t2_zipcode_switzerland.rb +0 -8
- data/examples/singleview/table_import_order.rb +0 -6
- data/examples/singleview/tariff.rb +0 -51
- data/examples/singleview/tariff_charge.rb +0 -33
- data/examples/singleview/tariff_charge_defn.rb +0 -18
- data/examples/singleview/tariff_condition_defn.rb +0 -19
- data/examples/singleview/tariff_history.rb +0 -70
- data/examples/singleview/tariff_recurring.rb +0 -36
- data/examples/singleview/task_queue.rb +0 -130
- data/examples/singleview/task_queue_result.rb +0 -10
- data/examples/singleview/template.rb +0 -18
- data/examples/singleview/template_history.rb +0 -30
- data/examples/singleview/template_reference.rb +0 -9
- data/examples/singleview/template_variable.rb +0 -10
- data/examples/singleview/trt_clec_treatment.rb +0 -13
- data/examples/singleview/variable_defn.rb +0 -48
- data/examples/singleview/variable_defn_dependency.rb +0 -11
- data/examples/singleview/variable_defn_direct.rb +0 -15
- data/examples/singleview/variable_defn_history.rb +0 -22
- data/examples/singleview/work_force.rb +0 -25
- data/examples/singleview/xpsi_addr_val_commtax21.rb +0 -24
- data/examples/singleview/xpsi_addr_val_msag.rb +0 -24
- data/examples/singleview/xpsi_addr_val_zip.rb +0 -14
- data/examples/singleview/xpsi_ne_batch.rb +0 -20
- data/examples/singleview/xpsi_product_batch.rb +0 -18
- data/examples/singleview/xpsi_product_status.rb +0 -14
- data/examples/singleview/xpsi_tax_error.rb +0 -34
- data/examples/singleview/xpsi_trt_revoke.rb +0 -68
- data/examples/singleview/xpsi_trt_revoke_prod_inst.rb +0 -12
- data/examples/singleview/xpsi_update_capture.rb +0 -35
@@ -1,8 +0,0 @@
|
|
1
|
-
class AtlantaProfileRoleMap < ActiveRecord::Base
|
2
|
-
belongs_to :atlanta_profile, :class_name => 'AtlantaProfile', :foreign_key => :atlanta_profile_id
|
3
|
-
belongs_to :atlanta_role, :class_name => 'AtlantaRole', :foreign_key => :atlanta_role_id
|
4
|
-
validates_presence_of :atlanta_profile_id
|
5
|
-
validates_numericality_of :atlanta_profile_id, :allow_nil => false, :only_integer => true
|
6
|
-
validates_presence_of :atlanta_role_id
|
7
|
-
validates_numericality_of :atlanta_role_id, :allow_nil => false, :only_integer => true
|
8
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
class AtlantaProfileWfMap < ActiveRecord::Base
|
2
|
-
belongs_to :atlanta_profile, :class_name => 'AtlantaProfile', :foreign_key => :atlanta_profile_id
|
3
|
-
belongs_to :work_force, :class_name => 'WorkForce', :foreign_key => :work_force_id
|
4
|
-
validates_presence_of :atlanta_profile_id
|
5
|
-
validates_numericality_of :atlanta_profile_id, :allow_nil => false, :only_integer => true
|
6
|
-
validates_presence_of :work_force_id
|
7
|
-
validates_numericality_of :work_force_id, :allow_nil => false, :only_integer => true
|
8
|
-
validates_presence_of :access_level
|
9
|
-
validates_numericality_of :access_level, :allow_nil => false, :only_integer => true
|
10
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
class AtlantaRole < ActiveRecord::Base
|
2
|
-
belongs_to :atlanta_role, :class_name => 'AtlantaRole', :foreign_key => :atlanta_role_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_profile_role_maps, :class_name => 'AtlantaProfileRoleMap', :foreign_key => :atlanta_role_id
|
6
|
-
has_many :atlanta_roles, :class_name => 'AtlantaRole', :foreign_key => :atlanta_role_id
|
7
|
-
has_many :menu_role_maps, :class_name => 'MenuRoleMap', :foreign_key => :atlanta_role_id
|
8
|
-
has_many :atlanta_profiles, :through => atlanta_profile_role_maps
|
9
|
-
has_many :atlanta_groups, :through => atlanta_roles
|
10
|
-
has_many :atlanta_operators, :through => atlanta_roles
|
11
|
-
validates_presence_of :atlanta_role_id
|
12
|
-
validates_numericality_of :atlanta_role_id, :allow_nil => false, :only_integer => true
|
13
|
-
validates_presence_of :atlanta_role_name
|
14
|
-
validates_length_of :atlanta_role_name, :allow_nil => false, :maximum => 30
|
15
|
-
validates_presence_of :description
|
16
|
-
validates_length_of :description, :allow_nil => false, :maximum => 255
|
17
|
-
validates_presence_of :last_modified
|
18
|
-
validates_presence_of :atlanta_operator_id
|
19
|
-
validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
|
20
|
-
validates_presence_of :atlanta_group_id
|
21
|
-
validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
|
22
|
-
validates_length_of :version_str, :allow_nil => true, :maximum => 255
|
23
|
-
end
|
@@ -1,39 +0,0 @@
|
|
1
|
-
class AtlantaTablePartition < ActiveRecord::Base
|
2
|
-
belongs_to :atlanta_table_partition, :class_name => 'AtlantaTablePartition', :foreign_key => :atlanta_table_partition_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 :schedule, :class_name => 'Schedule', :foreign_key => :schedule_id
|
6
|
-
belongs_to :task_queue, :class_name => 'TaskQueue', :foreign_key => :task_queue_id
|
7
|
-
has_many :atlanta_table_partitions, :class_name => 'AtlantaTablePartition', :foreign_key => :atlanta_table_partition_id
|
8
|
-
has_many :atlanta_groups, :through => atlanta_table_partitions
|
9
|
-
has_many :task_queues, :through => atlanta_table_partitions
|
10
|
-
has_many :atlanta_operators, :through => atlanta_table_partitions
|
11
|
-
has_many :schedules, :through => atlanta_table_partitions
|
12
|
-
validates_presence_of :atlanta_table_partition_id
|
13
|
-
validates_numericality_of :atlanta_table_partition_id, :allow_nil => false, :only_integer => true
|
14
|
-
validates_presence_of :table_partition_name
|
15
|
-
validates_length_of :table_partition_name, :allow_nil => false, :maximum => 30
|
16
|
-
validates_presence_of :last_modified
|
17
|
-
validates_presence_of :atlanta_operator_id
|
18
|
-
validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
|
19
|
-
validates_presence_of :atlanta_group_id
|
20
|
-
validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
|
21
|
-
validates_presence_of :base_table_name
|
22
|
-
validates_length_of :base_table_name, :allow_nil => false, :maximum => 30
|
23
|
-
validates_length_of :entity_id_column_name, :allow_nil => true, :maximum => 30
|
24
|
-
validates_numericality_of :from_entity_id, :allow_nil => true, :only_integer => true
|
25
|
-
validates_numericality_of :to_entity_id, :allow_nil => true, :only_integer => true
|
26
|
-
validates_numericality_of :desired_from_entity_id, :allow_nil => true, :only_integer => true
|
27
|
-
validates_numericality_of :desired_to_entity_id, :allow_nil => true, :only_integer => true
|
28
|
-
validates_length_of :date_column_name, :allow_nil => true, :maximum => 30
|
29
|
-
validates_presence_of :desired_status_code
|
30
|
-
validates_numericality_of :desired_status_code, :allow_nil => false, :only_integer => true
|
31
|
-
validates_presence_of :actual_status_code
|
32
|
-
validates_numericality_of :actual_status_code, :allow_nil => false, :only_integer => true
|
33
|
-
validates_numericality_of :required_operation_code, :allow_nil => true, :only_integer => true
|
34
|
-
validates_presence_of :operation_outcome_code
|
35
|
-
validates_numericality_of :operation_outcome_code, :allow_nil => false, :only_integer => true
|
36
|
-
validates_numericality_of :schedule_id, :allow_nil => true, :only_integer => true
|
37
|
-
validates_numericality_of :task_queue_id, :allow_nil => true, :only_integer => true
|
38
|
-
validates_numericality_of :uninvoiced_ind_code, :allow_nil => true, :only_integer => true
|
39
|
-
end
|
@@ -1,75 +0,0 @@
|
|
1
|
-
class AttributeType < ActiveRecord::Base
|
2
|
-
belongs_to :attribute_type, :class_name => 'AttributeType', :foreign_key => :attribute_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 :atlanta_help_entry, :class_name => 'AtlantaHelpEntry', :foreign_key => :atlanta_help_entry_id
|
6
|
-
belongs_to :reference_type, :class_name => 'ReferenceType', :foreign_key => :reference_type_id
|
7
|
-
has_many :attribute_types, :class_name => 'AttributeType', :foreign_key => :attribute_type_id
|
8
|
-
has_many :attribute_type_variables, :class_name => 'AttributeTypeVariable', :foreign_key => :attribute_type_id
|
9
|
-
has_many :configuration_attr_types, :class_name => 'ConfigurationAttrType', :foreign_key => :attribute_type_id
|
10
|
-
has_many :entity_validation_lists, :class_name => 'EntityValidationList', :foreign_key => :attribute_type_id
|
11
|
-
has_many :evs_attribute_type_keys, :class_name => 'EvsAttributeTypeKey', :foreign_key => :attribute_type_id
|
12
|
-
has_many :tariff_charge_defns, :class_name => 'TariffChargeDefn', :foreign_key => :attribute_type_id
|
13
|
-
has_many :tariff_condition_defns, :class_name => 'TariffConditionDefn', :foreign_key => :attribute_type_id
|
14
|
-
has_many :atlanta_groups, :through => attribute_types
|
15
|
-
has_many :reference_types, :through => attribute_types
|
16
|
-
has_many :atlanta_operators, :through => attribute_types
|
17
|
-
has_many :atlanta_help_entries, :through => attribute_types
|
18
|
-
has_many :variable_defns, :through => attribute_type_variables
|
19
|
-
has_many :configuration_attr_types, :through => configuration_attr_types
|
20
|
-
has_many :configuration_item_types, :through => configuration_attr_types
|
21
|
-
has_many :entity_validations, :through => entity_validation_lists
|
22
|
-
has_many :tariffs, :through => tariff_charge_defns
|
23
|
-
has_many :tariffs, :through => tariff_condition_defns
|
24
|
-
validates_presence_of :attribute_type_id
|
25
|
-
validates_numericality_of :attribute_type_id, :allow_nil => false, :only_integer => true
|
26
|
-
validates_presence_of :last_modified
|
27
|
-
validates_presence_of :attribute_type_name
|
28
|
-
validates_length_of :attribute_type_name, :allow_nil => false, :maximum => 30
|
29
|
-
validates_presence_of :description
|
30
|
-
validates_length_of :description, :allow_nil => false, :maximum => 255
|
31
|
-
validates_presence_of :atlanta_operator_id
|
32
|
-
validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
|
33
|
-
validates_presence_of :atlanta_group_id
|
34
|
-
validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
|
35
|
-
validates_presence_of :label
|
36
|
-
validates_length_of :label, :allow_nil => false, :maximum => 80
|
37
|
-
validates_length_of :hint_text, :allow_nil => true, :maximum => 255
|
38
|
-
validates_numericality_of :atlanta_help_entry_id, :allow_nil => true, :only_integer => true
|
39
|
-
validates_presence_of :data_type_code
|
40
|
-
validates_numericality_of :data_type_code, :allow_nil => false, :only_integer => true
|
41
|
-
validates_numericality_of :case_type_code, :allow_nil => true, :only_integer => true
|
42
|
-
validates_presence_of :mandatory_ind_code
|
43
|
-
validates_numericality_of :mandatory_ind_code, :allow_nil => false, :only_integer => true
|
44
|
-
validates_presence_of :visible_ind_code
|
45
|
-
validates_numericality_of :visible_ind_code, :allow_nil => false, :only_integer => true
|
46
|
-
validates_numericality_of :visible_form_security_code, :allow_nil => true, :only_integer => true
|
47
|
-
validates_numericality_of :visible_group_security_code, :allow_nil => true, :only_integer => true
|
48
|
-
validates_presence_of :enabled_ind_code
|
49
|
-
validates_numericality_of :enabled_ind_code, :allow_nil => false, :only_integer => true
|
50
|
-
validates_numericality_of :enabled_form_security_code, :allow_nil => true, :only_integer => true
|
51
|
-
validates_numericality_of :enabled_group_security_code, :allow_nil => true, :only_integer => true
|
52
|
-
validates_presence_of :update_ind_code
|
53
|
-
validates_numericality_of :update_ind_code, :allow_nil => false, :only_integer => true
|
54
|
-
validates_numericality_of :update_form_security_code, :allow_nil => true, :only_integer => true
|
55
|
-
validates_numericality_of :update_group_security_code, :allow_nil => true, :only_integer => true
|
56
|
-
validates_presence_of :alignment_code
|
57
|
-
validates_numericality_of :alignment_code, :allow_nil => false, :only_integer => true
|
58
|
-
validates_numericality_of :max_length, :allow_nil => true, :only_integer => true
|
59
|
-
validates_numericality_of :min_value, :allow_nil => true
|
60
|
-
validates_numericality_of :max_value, :allow_nil => true
|
61
|
-
validates_numericality_of :default_value_expr_ind_code, :allow_nil => true, :only_integer => true
|
62
|
-
validates_length_of :default_value, :allow_nil => true, :maximum => 255
|
63
|
-
validates_numericality_of :display_width, :allow_nil => true, :only_integer => true
|
64
|
-
validates_length_of :display_format, :allow_nil => true, :maximum => 80
|
65
|
-
validates_length_of :edit_format, :allow_nil => true, :maximum => 80
|
66
|
-
validates_length_of :edit_mask, :allow_nil => true, :maximum => 80
|
67
|
-
validates_numericality_of :original_ind_code, :allow_nil => true, :only_integer => true
|
68
|
-
validates_numericality_of :reference_type_id, :allow_nil => true, :only_integer => true
|
69
|
-
validates_numericality_of :denormalised_ind_code, :allow_nil => true, :only_integer => true
|
70
|
-
validates_numericality_of :editable_ind_code, :allow_nil => true, :only_integer => true
|
71
|
-
validates_numericality_of :field_validation_expr_list_id, :allow_nil => true, :only_integer => true
|
72
|
-
validates_length_of :sql_txt, :allow_nil => true, :maximum => 2000
|
73
|
-
validates_length_of :combo_expr, :allow_nil => true, :maximum => 2000
|
74
|
-
validates_length_of :version_str, :allow_nil => true, :maximum => 255
|
75
|
-
end
|
@@ -1,8 +0,0 @@
|
|
1
|
-
class AttributeTypeVariable < ActiveRecord::Base
|
2
|
-
belongs_to :attribute_type, :class_name => 'AttributeType', :foreign_key => :attribute_type_id
|
3
|
-
belongs_to :variable_defn, :class_name => 'VariableDefn', :foreign_key => :variable_defn_id
|
4
|
-
validates_presence_of :attribute_type_id
|
5
|
-
validates_numericality_of :attribute_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,93 +0,0 @@
|
|
1
|
-
class BillRun < ActiveRecord::Base
|
2
|
-
belongs_to :bill_run, :class_name => 'BillRun', :foreign_key => :bill_run_id
|
3
|
-
belongs_to :bill_run_type, :class_name => 'BillRunType', :foreign_key => :bill_run_type_id
|
4
|
-
belongs_to :atlanta_operator, :class_name => 'AtlantaOperator', :foreign_key => :atlanta_operator_id
|
5
|
-
belongs_to :atlanta_group, :class_name => 'AtlantaGroup', :foreign_key => :atlanta_group_id
|
6
|
-
belongs_to :error_message, :class_name => 'ErrorMessage', :foreign_key => :error_message_id
|
7
|
-
has_many :bill_runs, :class_name => 'BillRun', :foreign_key => :bill_run_id
|
8
|
-
has_many :bill_run_operations, :class_name => 'BillRunOperation', :foreign_key => :bill_run_id
|
9
|
-
has_many :customer_nodes, :class_name => 'CustomerNode', :foreign_key => :bill_run_id
|
10
|
-
has_many :inv_report_accounts_ts, :class_name => 'InvReportAccountsT', :foreign_key => :bill_run_id
|
11
|
-
has_many :invoices, :class_name => 'Invoice', :foreign_key => :bill_run_id
|
12
|
-
has_many :normalised_events, :class_name => 'NormalisedEvent', :foreign_key => :bill_run_id
|
13
|
-
has_many :normalised_event_errors, :class_name => 'NormalisedEventError', :foreign_key => :bill_run_id
|
14
|
-
has_many :rgp_files, :class_name => 'RgpFile', :foreign_key => :bill_run_id
|
15
|
-
has_many :rgp_normalised_events, :class_name => 'RgpNormalisedEvent', :foreign_key => :bill_run_id
|
16
|
-
has_many :t2_inv_revoked_invoices, :class_name => 'T2InvRevokedInvoice', :foreign_key => :bill_run_id
|
17
|
-
has_many :t2_inv_suppress_invoices, :class_name => 'T2InvSuppressInvoice', :foreign_key => :bill_run_id
|
18
|
-
has_many :atlanta_groups, :through => bill_runs
|
19
|
-
has_many :bill_run_types, :through => bill_runs
|
20
|
-
has_many :error_messages, :through => bill_runs
|
21
|
-
has_many :atlanta_operators, :through => bill_runs
|
22
|
-
has_many :error_messages, :through => bill_run_operations
|
23
|
-
has_many :task_queues, :through => bill_run_operations
|
24
|
-
has_many :atlanta_operators, :through => bill_run_operations
|
25
|
-
has_many :bill_run_operations, :through => bill_run_operations
|
26
|
-
has_many :customer_nodes, :through => customer_nodes
|
27
|
-
has_many :bill_run_operations, :through => customer_nodes
|
28
|
-
has_many :customer_nodes, :through => inv_report_accounts_ts
|
29
|
-
has_many :accounts, :through => inv_report_accounts_ts
|
30
|
-
has_many :customer_nodes, :through => invoices
|
31
|
-
has_many :accounts, :through => invoices
|
32
|
-
has_many :invoices, :through => invoices
|
33
|
-
has_many :invoice_types, :through => invoices
|
34
|
-
has_many :normalised_event_types, :through => normalised_events
|
35
|
-
has_many :currencies, :through => normalised_events
|
36
|
-
has_many :normalised_event_files, :through => normalised_events
|
37
|
-
has_many :normalised_events, :through => normalised_events
|
38
|
-
has_many :normalised_event_types, :through => normalised_event_errors
|
39
|
-
has_many :currencies, :through => normalised_event_errors
|
40
|
-
has_many :error_messages, :through => normalised_event_errors
|
41
|
-
has_many :normalised_event_files, :through => normalised_event_errors
|
42
|
-
has_many :reprocessed_files, :through => normalised_event_errors
|
43
|
-
has_many :normalised_events, :through => normalised_event_errors
|
44
|
-
has_many :rgp_files, :through => rgp_files
|
45
|
-
has_many :normalised_event_types, :through => rgp_normalised_events
|
46
|
-
has_many :customer_nodes, :through => rgp_normalised_events
|
47
|
-
has_many :currencies, :through => rgp_normalised_events
|
48
|
-
has_many :fac_group_instances, :through => rgp_normalised_events
|
49
|
-
has_many :tariffs, :through => rgp_normalised_events
|
50
|
-
has_many :equipment, :through => rgp_normalised_events
|
51
|
-
has_many :services, :through => rgp_normalised_events
|
52
|
-
has_many :rgp_files, :through => rgp_normalised_events
|
53
|
-
has_many :product_instances, :through => rgp_normalised_events
|
54
|
-
has_many :customer_nodes, :through => t2_inv_suppress_invoices
|
55
|
-
validates_presence_of :bill_run_id
|
56
|
-
validates_numericality_of :bill_run_id, :allow_nil => false, :only_integer => true
|
57
|
-
validates_presence_of :last_modified
|
58
|
-
validates_presence_of :bill_run_type_id
|
59
|
-
validates_numericality_of :bill_run_type_id, :allow_nil => false, :only_integer => true
|
60
|
-
validates_presence_of :status_code
|
61
|
-
validates_numericality_of :status_code, :allow_nil => false, :only_integer => true
|
62
|
-
validates_presence_of :summary_status_code
|
63
|
-
validates_numericality_of :summary_status_code, :allow_nil => false, :only_integer => true
|
64
|
-
validates_length_of :process_identifier, :allow_nil => true, :maximum => 80
|
65
|
-
validates_presence_of :effective_date
|
66
|
-
validates_presence_of :effective_day_of_month
|
67
|
-
validates_numericality_of :effective_day_of_month, :allow_nil => false, :only_integer => true
|
68
|
-
validates_presence_of :atlanta_operator_id
|
69
|
-
validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
|
70
|
-
validates_presence_of :atlanta_group_id
|
71
|
-
validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
|
72
|
-
validates_numericality_of :creation_task_queue_id, :allow_nil => true, :only_integer => true
|
73
|
-
validates_numericality_of :billing_schedule_id, :allow_nil => true, :only_integer => true
|
74
|
-
validates_numericality_of :qa_ind_code, :allow_nil => true, :only_integer => true
|
75
|
-
validates_numericality_of :last_task_queue_id, :allow_nil => true, :only_integer => true
|
76
|
-
validates_length_of :last_process_name, :allow_nil => true, :maximum => 80
|
77
|
-
validates_presence_of :customer_count
|
78
|
-
validates_numericality_of :customer_count, :allow_nil => false, :only_integer => true
|
79
|
-
validates_numericality_of :amount, :allow_nil => true
|
80
|
-
validates_numericality_of :error_message_id, :allow_nil => true, :only_integer => true
|
81
|
-
validates_length_of :error_message, :allow_nil => true, :maximum => 4000
|
82
|
-
validates_numericality_of :general_stats1, :allow_nil => true
|
83
|
-
validates_numericality_of :general_stats2, :allow_nil => true
|
84
|
-
validates_numericality_of :general_stats3, :allow_nil => true
|
85
|
-
validates_numericality_of :general_stats4, :allow_nil => true
|
86
|
-
validates_numericality_of :general_stats5, :allow_nil => true
|
87
|
-
validates_numericality_of :general_stats6, :allow_nil => true
|
88
|
-
validates_numericality_of :general_stats7, :allow_nil => true
|
89
|
-
validates_numericality_of :general_stats8, :allow_nil => true
|
90
|
-
validates_numericality_of :general_stats9, :allow_nil => true
|
91
|
-
validates_numericality_of :general_stats10, :allow_nil => true
|
92
|
-
validates_numericality_of :billing_configuration_code, :allow_nil => true, :only_integer => true
|
93
|
-
end
|
@@ -1,54 +0,0 @@
|
|
1
|
-
class BillRunOperation < ActiveRecord::Base
|
2
|
-
belongs_to :bill_run_operation, :class_name => 'BillRunOperation', :foreign_key => :bill_run_operation_id
|
3
|
-
belongs_to :bill_run, :class_name => 'BillRun', :foreign_key => :bill_run_id
|
4
|
-
belongs_to :atlanta_operator, :class_name => 'AtlantaOperator', :foreign_key => :atlanta_operator_id
|
5
|
-
belongs_to :task_queue, :class_name => 'TaskQueue', :foreign_key => :task_queue_id
|
6
|
-
belongs_to :error_message, :class_name => 'ErrorMessage', :foreign_key => :error_message_id
|
7
|
-
has_many :bill_run_operations, :class_name => 'BillRunOperation', :foreign_key => :bill_run_operation_id
|
8
|
-
has_many :customer_nodes, :class_name => 'CustomerNode', :foreign_key => :bill_run_operation_id
|
9
|
-
has_many :customer_node_bill_runs, :class_name => 'CustomerNodeBillRun', :foreign_key => :bill_run_operation_id
|
10
|
-
has_many :service_bill_run_ts, :class_name => 'ServiceBillRunT', :foreign_key => :bill_run_operation_id
|
11
|
-
has_many :error_messages, :through => bill_run_operations
|
12
|
-
has_many :task_queues, :through => bill_run_operations
|
13
|
-
has_many :atlanta_operators, :through => bill_run_operations
|
14
|
-
has_many :bill_runs, :through => bill_run_operations
|
15
|
-
has_many :customer_nodes, :through => customer_nodes
|
16
|
-
has_many :bill_runs, :through => customer_nodes
|
17
|
-
has_many :customer_nodes, :through => customer_node_bill_runs
|
18
|
-
has_many :error_messages, :through => customer_node_bill_runs
|
19
|
-
has_many :customer_nodes, :through => service_bill_run_ts
|
20
|
-
has_many :services, :through => service_bill_run_ts
|
21
|
-
validates_presence_of :bill_run_operation_id
|
22
|
-
validates_numericality_of :bill_run_operation_id, :allow_nil => false, :only_integer => true
|
23
|
-
validates_presence_of :last_modified
|
24
|
-
validates_presence_of :bill_run_id
|
25
|
-
validates_numericality_of :bill_run_id, :allow_nil => false, :only_integer => true
|
26
|
-
validates_presence_of :status_code
|
27
|
-
validates_numericality_of :status_code, :allow_nil => false, :only_integer => true
|
28
|
-
validates_presence_of :atlanta_operator_id
|
29
|
-
validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
|
30
|
-
validates_numericality_of :task_queue_id, :allow_nil => true, :only_integer => true
|
31
|
-
validates_length_of :process_name, :allow_nil => true, :maximum => 80
|
32
|
-
validates_presence_of :bill_run_operation_code
|
33
|
-
validates_numericality_of :bill_run_operation_code, :allow_nil => false, :only_integer => true
|
34
|
-
validates_presence_of :start_date
|
35
|
-
validates_presence_of :input_count
|
36
|
-
validates_numericality_of :input_count, :allow_nil => false, :only_integer => true
|
37
|
-
validates_numericality_of :success_count, :allow_nil => true, :only_integer => true
|
38
|
-
validates_numericality_of :error_count, :allow_nil => true, :only_integer => true
|
39
|
-
validates_numericality_of :pre_skip_count, :allow_nil => true, :only_integer => true
|
40
|
-
validates_numericality_of :post_skip_count, :allow_nil => true, :only_integer => true
|
41
|
-
validates_numericality_of :amount, :allow_nil => true
|
42
|
-
validates_numericality_of :error_message_id, :allow_nil => true, :only_integer => true
|
43
|
-
validates_length_of :error_message, :allow_nil => true, :maximum => 4000
|
44
|
-
validates_numericality_of :general_stats1, :allow_nil => true
|
45
|
-
validates_numericality_of :general_stats2, :allow_nil => true
|
46
|
-
validates_numericality_of :general_stats3, :allow_nil => true
|
47
|
-
validates_numericality_of :general_stats4, :allow_nil => true
|
48
|
-
validates_numericality_of :general_stats5, :allow_nil => true
|
49
|
-
validates_numericality_of :general_stats6, :allow_nil => true
|
50
|
-
validates_numericality_of :general_stats7, :allow_nil => true
|
51
|
-
validates_numericality_of :general_stats8, :allow_nil => true
|
52
|
-
validates_numericality_of :general_stats9, :allow_nil => true
|
53
|
-
validates_numericality_of :general_stats10, :allow_nil => true
|
54
|
-
end
|
@@ -1,39 +0,0 @@
|
|
1
|
-
class BillRunType < ActiveRecord::Base
|
2
|
-
belongs_to :bill_run_type, :class_name => 'BillRunType', :foreign_key => :bill_run_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
|
-
has_many :bill_runs, :class_name => 'BillRun', :foreign_key => :bill_run_type_id
|
7
|
-
has_many :bill_run_types, :class_name => 'BillRunType', :foreign_key => :bill_run_type_id
|
8
|
-
has_many :bill_run_type_statuses, :class_name => 'BillRunTypeStatus', :foreign_key => :bill_run_type_id
|
9
|
-
has_many :bill_run_type_tasks, :class_name => 'BillRunTypeTask', :foreign_key => :bill_run_type_id
|
10
|
-
has_many :atlanta_groups, :through => bill_runs
|
11
|
-
has_many :error_messages, :through => bill_runs
|
12
|
-
has_many :atlanta_operators, :through => bill_runs
|
13
|
-
has_many :bill_runs, :through => bill_runs
|
14
|
-
has_many :atlanta_groups, :through => bill_run_types
|
15
|
-
has_many :currencies, :through => bill_run_types
|
16
|
-
has_many :atlanta_operators, :through => bill_run_types
|
17
|
-
has_many :icons, :through => bill_run_type_statuses
|
18
|
-
has_many :schedule_task_types, :through => bill_run_type_tasks
|
19
|
-
validates_presence_of :bill_run_type_id
|
20
|
-
validates_numericality_of :bill_run_type_id, :allow_nil => false, :only_integer => true
|
21
|
-
validates_presence_of :last_modified
|
22
|
-
validates_presence_of :bill_run_type_name
|
23
|
-
validates_length_of :bill_run_type_name, :allow_nil => false, :maximum => 30
|
24
|
-
validates_presence_of :description
|
25
|
-
validates_length_of :description, :allow_nil => false, :maximum => 2000
|
26
|
-
validates_presence_of :atlanta_operator_id
|
27
|
-
validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
|
28
|
-
validates_presence_of :atlanta_group_id
|
29
|
-
validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
|
30
|
-
validates_numericality_of :qa_ind_code, :allow_nil => true, :only_integer => true
|
31
|
-
validates_presence_of :default_icon_id
|
32
|
-
validates_numericality_of :default_icon_id, :allow_nil => false, :only_integer => true
|
33
|
-
validates_presence_of :currency_id
|
34
|
-
validates_numericality_of :currency_id, :allow_nil => false, :only_integer => true
|
35
|
-
validates_numericality_of :summary_function_defn_id, :allow_nil => true, :only_integer => true
|
36
|
-
validates_numericality_of :bill_run_entity_validation_id, :allow_nil => true, :only_integer => true
|
37
|
-
validates_numericality_of :operation_entity_validation_id, :allow_nil => true, :only_integer => true
|
38
|
-
validates_length_of :version_str, :allow_nil => true, :maximum => 255
|
39
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
class BillRunTypeStatus < ActiveRecord::Base
|
2
|
-
belongs_to :bill_run_type, :class_name => 'BillRunType', :foreign_key => :bill_run_type_id
|
3
|
-
belongs_to :icon, :class_name => 'Icon', :foreign_key => :icon_id
|
4
|
-
validates_presence_of :bill_run_type_id
|
5
|
-
validates_numericality_of :bill_run_type_id, :allow_nil => false, :only_integer => true
|
6
|
-
validates_presence_of :summary_status_code
|
7
|
-
validates_numericality_of :summary_status_code, :allow_nil => false, :only_integer => true
|
8
|
-
validates_presence_of :last_modified
|
9
|
-
validates_numericality_of :icon_id, :allow_nil => true, :only_integer => true
|
10
|
-
validates_numericality_of :foreground_colour, :allow_nil => true, :only_integer => true
|
11
|
-
validates_numericality_of :background_colour, :allow_nil => true, :only_integer => true
|
12
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
class BillRunTypeTask < ActiveRecord::Base
|
2
|
-
belongs_to :bill_run_type, :class_name => 'BillRunType', :foreign_key => :bill_run_type_id
|
3
|
-
belongs_to :schedule_task_type, :class_name => 'ScheduleTaskType', :foreign_key => :schedule_task_type_id
|
4
|
-
validates_presence_of :bill_run_type_id
|
5
|
-
validates_numericality_of :bill_run_type_id, :allow_nil => false, :only_integer => true
|
6
|
-
validates_presence_of :last_modified
|
7
|
-
validates_presence_of :schedule_task_type_id
|
8
|
-
validates_numericality_of :schedule_task_type_id, :allow_nil => false, :only_integer => true
|
9
|
-
validates_numericality_of :min_operation_code, :allow_nil => true, :only_integer => true
|
10
|
-
validates_numericality_of :max_operation_code, :allow_nil => true, :only_integer => true
|
11
|
-
validates_numericality_of :revoke_ind_code, :allow_nil => true, :only_integer => true
|
12
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
class Cache < ActiveRecord::Base
|
2
|
-
belongs_to :cache, :class_name => 'Cache', :foreign_key => :cache_id
|
3
|
-
has_many :caches, :class_name => 'Cache', :foreign_key => :cache_id
|
4
|
-
has_many :cache_fields, :class_name => 'CacheField', :foreign_key => :cache_id
|
5
|
-
validates_presence_of :cache_id
|
6
|
-
validates_numericality_of :cache_id, :allow_nil => false, :only_integer => true
|
7
|
-
validates_presence_of :cache_name
|
8
|
-
validates_length_of :cache_name, :allow_nil => false, :maximum => 30
|
9
|
-
validates_presence_of :cache_variable
|
10
|
-
validates_length_of :cache_variable, :allow_nil => false, :maximum => 50
|
11
|
-
validates_presence_of :view_name
|
12
|
-
validates_length_of :view_name, :allow_nil => false, :maximum => 40
|
13
|
-
validates_presence_of :key_column
|
14
|
-
validates_length_of :key_column, :allow_nil => false, :maximum => 30
|
15
|
-
validates_presence_of :operator_id
|
16
|
-
validates_numericality_of :operator_id, :allow_nil => false, :only_integer => true
|
17
|
-
validates_presence_of :last_modified
|
18
|
-
validates_presence_of :group_id
|
19
|
-
validates_numericality_of :group_id, :allow_nil => false, :only_integer => true
|
20
|
-
validates_length_of :preload_where_clause, :allow_nil => true, :maximum => 2000
|
21
|
-
validates_numericality_of :date_ranged_ind_code, :allow_nil => true, :only_integer => true
|
22
|
-
validates_length_of :complete_function, :allow_nil => true, :maximum => 40
|
23
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
class CacheField < ActiveRecord::Base
|
2
|
-
belongs_to :cache, :class_name => 'Cache', :foreign_key => :cache_id
|
3
|
-
validates_presence_of :cache_id
|
4
|
-
validates_numericality_of :cache_id, :allow_nil => false, :only_integer => true
|
5
|
-
validates_presence_of :column_name
|
6
|
-
validates_length_of :column_name, :allow_nil => false, :maximum => 255
|
7
|
-
validates_presence_of :key_name
|
8
|
-
validates_length_of :key_name, :allow_nil => false, :maximum => 30
|
9
|
-
validates_length_of :view_name, :allow_nil => true, :maximum => 40
|
10
|
-
validates_length_of :where_clause, :allow_nil => true, :maximum => 255
|
11
|
-
validates_length_of :search_key, :allow_nil => true, :maximum => 30
|
12
|
-
validates_length_of :order_by, :allow_nil => true, :maximum => 255
|
13
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
class CanActCharge < ActiveRecord::Base
|
2
|
-
validates_presence_of :charge_type
|
3
|
-
validates_numericality_of :charge_type, :allow_nil => false, :only_integer => true
|
4
|
-
validates_presence_of :entity_type
|
5
|
-
validates_numericality_of :entity_type, :allow_nil => false, :only_integer => true
|
6
|
-
validates_presence_of :entity_id
|
7
|
-
validates_numericality_of :entity_id, :allow_nil => false, :only_integer => true
|
8
|
-
validates_presence_of :charge_date
|
9
|
-
validates_presence_of :charge_seq_nr
|
10
|
-
validates_numericality_of :charge_seq_nr, :allow_nil => false, :only_integer => true
|
11
|
-
validates_presence_of :query_id
|
12
|
-
validates_numericality_of :query_id, :allow_nil => false, :only_integer => true
|
13
|
-
validates_presence_of :modified_date
|
14
|
-
validates_presence_of :modified_operator
|
15
|
-
validates_numericality_of :modified_operator, :allow_nil => false, :only_integer => true
|
16
|
-
end
|
@@ -1,67 +0,0 @@
|
|
1
|
-
class Charge < ActiveRecord::Base
|
2
|
-
belongs_to :charge, :class_name => 'Charge', :foreign_key => :charge_id
|
3
|
-
belongs_to :currency, :class_name => 'Currency', :foreign_key => :currency_id
|
4
|
-
belongs_to :account, :class_name => 'Account', :foreign_key => :account_id
|
5
|
-
belongs_to :gl_code, :class_name => 'GlCode', :foreign_key => :gl_code_id
|
6
|
-
belongs_to :receivable_type, :class_name => 'ReceivableType', :foreign_key => :receivable_type_id
|
7
|
-
belongs_to :normalised_event, :class_name => 'NormalisedEvent', :foreign_key => :normalised_event_id
|
8
|
-
belongs_to :service, :class_name => 'Service', :foreign_key => :service_id
|
9
|
-
belongs_to :customer_node, :class_name => 'CustomerNode', :foreign_key => :customer_node_id
|
10
|
-
belongs_to :tariff, :class_name => 'Tariff', :foreign_key => :tariff_id
|
11
|
-
belongs_to :subtotal, :class_name => 'Subtotal', :foreign_key => :subtotal_id
|
12
|
-
belongs_to :adjustment, :class_name => 'Adjustment', :foreign_key => :adjustment_id
|
13
|
-
belongs_to :payment, :class_name => 'Payment', :foreign_key => :payment_id
|
14
|
-
belongs_to :invoice, :class_name => 'Invoice', :foreign_key => :invoice_id
|
15
|
-
has_many :charges, :class_name => 'Charge', :foreign_key => :charge_id
|
16
|
-
has_many :subtotals, :through => charges
|
17
|
-
has_many :customer_nodes, :through => charges
|
18
|
-
has_many :invoices, :through => charges
|
19
|
-
has_many :adjustments, :through => charges
|
20
|
-
has_many :accounts, :through => charges
|
21
|
-
has_many :currencies, :through => charges
|
22
|
-
has_many :tariffs, :through => charges
|
23
|
-
has_many :services, :through => charges
|
24
|
-
has_many :receivable_types, :through => charges
|
25
|
-
has_many :normalised_events, :through => charges
|
26
|
-
has_many :gl_codes, :through => charges
|
27
|
-
has_many :payments, :through => charges
|
28
|
-
validates_presence_of :charge_id
|
29
|
-
validates_numericality_of :charge_id, :allow_nil => false, :only_integer => true
|
30
|
-
validates_presence_of :last_modified
|
31
|
-
validates_numericality_of :charge, :allow_nil => true
|
32
|
-
validates_numericality_of :proportion, :allow_nil => true
|
33
|
-
validates_numericality_of :currency_id, :allow_nil => true, :only_integer => true
|
34
|
-
validates_presence_of :account_id
|
35
|
-
validates_numericality_of :account_id, :allow_nil => false, :only_integer => true
|
36
|
-
validates_numericality_of :uninvoiced_ind_code, :allow_nil => true, :only_integer => true
|
37
|
-
validates_numericality_of :gl_code_id, :allow_nil => true, :only_integer => true
|
38
|
-
validates_numericality_of :from_gl_code_id, :allow_nil => true, :only_integer => true
|
39
|
-
validates_numericality_of :receivable_type_id, :allow_nil => true, :only_integer => true
|
40
|
-
validates_numericality_of :normalised_event_id, :allow_nil => true, :only_integer => true
|
41
|
-
validates_numericality_of :service_id, :allow_nil => true, :only_integer => true
|
42
|
-
validates_numericality_of :customer_node_id, :allow_nil => true, :only_integer => true
|
43
|
-
validates_presence_of :charge_date
|
44
|
-
validates_numericality_of :tariff_id, :allow_nil => true, :only_integer => true
|
45
|
-
validates_numericality_of :subtotal_id, :allow_nil => true, :only_integer => true
|
46
|
-
validates_numericality_of :adjustment_id, :allow_nil => true, :only_integer => true
|
47
|
-
validates_numericality_of :payment_id, :allow_nil => true, :only_integer => true
|
48
|
-
validates_length_of :invoice_txt, :allow_nil => true, :maximum => 255
|
49
|
-
validates_numericality_of :from_invoice_id, :allow_nil => true, :only_integer => true
|
50
|
-
validates_numericality_of :invoice_id, :allow_nil => true, :only_integer => true
|
51
|
-
validates_numericality_of :invoice_section_nr, :allow_nil => true, :only_integer => true
|
52
|
-
validates_numericality_of :invoice_item_nr, :allow_nil => true, :only_integer => true
|
53
|
-
validates_length_of :key_value, :allow_nil => true, :maximum => 255
|
54
|
-
validates_length_of :general_1, :allow_nil => true, :maximum => 255
|
55
|
-
validates_length_of :general_2, :allow_nil => true, :maximum => 255
|
56
|
-
validates_length_of :general_3, :allow_nil => true, :maximum => 255
|
57
|
-
validates_length_of :general_4, :allow_nil => true, :maximum => 255
|
58
|
-
validates_length_of :general_5, :allow_nil => true, :maximum => 255
|
59
|
-
validates_length_of :general_6, :allow_nil => true, :maximum => 255
|
60
|
-
validates_length_of :general_7, :allow_nil => true, :maximum => 255
|
61
|
-
validates_length_of :general_8, :allow_nil => true, :maximum => 255
|
62
|
-
validates_length_of :general_9, :allow_nil => true, :maximum => 255
|
63
|
-
validates_length_of :general_10, :allow_nil => true, :maximum => 255
|
64
|
-
validates_presence_of :partition_nr
|
65
|
-
validates_numericality_of :partition_nr, :allow_nil => false, :only_integer => true
|
66
|
-
validates_numericality_of :normalised_event_partition_nr, :allow_nil => true, :only_integer => true
|
67
|
-
end
|