magic_model_generator 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,45 +0,0 @@
|
|
|
1
|
-
class ChargeCategory < ActiveRecord::Base
|
|
2
|
-
belongs_to :charge_category, :class_name => 'ChargeCategory', :foreign_key => :charge_category_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 :charge_categories, :class_name => 'ChargeCategory', :foreign_key => :charge_category_id
|
|
6
|
-
has_many :customer_node_charge_cats, :class_name => 'CustomerNodeChargeCat', :foreign_key => :charge_category_id
|
|
7
|
-
has_many :customer_node_type_ccs, :class_name => 'CustomerNodeTypeCc', :foreign_key => :charge_category_id
|
|
8
|
-
has_many :product_tariffs, :class_name => 'ProductTariff', :foreign_key => :charge_category_id
|
|
9
|
-
has_many :service_charge_categories, :class_name => 'ServiceChargeCategory', :foreign_key => :charge_category_id
|
|
10
|
-
has_many :service_type_ccs, :class_name => 'ServiceTypeCc', :foreign_key => :charge_category_id
|
|
11
|
-
has_many :tariff_histories, :class_name => 'TariffHistory', :foreign_key => :charge_category_id
|
|
12
|
-
has_many :atlanta_groups, :through => charge_categories
|
|
13
|
-
has_many :atlanta_operators, :through => charge_categories
|
|
14
|
-
has_many :customer_nodes, :through => customer_node_charge_cats
|
|
15
|
-
has_many :customer_node_types, :through => customer_node_type_ccs
|
|
16
|
-
has_many :tariffs, :through => product_tariffs
|
|
17
|
-
has_many :products, :through => product_tariffs
|
|
18
|
-
has_many :services, :through => service_charge_categories
|
|
19
|
-
has_many :service_types, :through => service_type_ccs
|
|
20
|
-
has_many :atlanta_groups, :through => tariff_histories
|
|
21
|
-
has_many :currencies, :through => tariff_histories
|
|
22
|
-
has_many :atlanta_operators, :through => tariff_histories
|
|
23
|
-
has_many :tariffs, :through => tariff_histories
|
|
24
|
-
has_many :receivable_types, :through => tariff_histories
|
|
25
|
-
validates_presence_of :charge_category_id
|
|
26
|
-
validates_numericality_of :charge_category_id, :allow_nil => false, :only_integer => true
|
|
27
|
-
validates_presence_of :last_modified
|
|
28
|
-
validates_presence_of :charge_category_name
|
|
29
|
-
validates_length_of :charge_category_name, :allow_nil => false, :maximum => 30
|
|
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_numericality_of :from_account_type_id, :allow_nil => true, :only_integer => true
|
|
37
|
-
validates_numericality_of :from_gl_code_id, :allow_nil => true, :only_integer => true
|
|
38
|
-
validates_numericality_of :from_customer_node_type_id, :allow_nil => true, :only_integer => true
|
|
39
|
-
validates_numericality_of :from_account_id, :allow_nil => true, :only_integer => true
|
|
40
|
-
validates_numericality_of :to_account_type_id, :allow_nil => true, :only_integer => true
|
|
41
|
-
validates_numericality_of :to_gl_code_id, :allow_nil => true, :only_integer => true
|
|
42
|
-
validates_numericality_of :to_customer_node_type_id, :allow_nil => true, :only_integer => true
|
|
43
|
-
validates_numericality_of :to_account_id, :allow_nil => true, :only_integer => true
|
|
44
|
-
validates_length_of :version_str, :allow_nil => true, :maximum => 255
|
|
45
|
-
end
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
class ChargeOutputDefn < ActiveRecord::Base
|
|
2
|
-
belongs_to :charge_output_defn, :class_name => 'ChargeOutputDefn', :foreign_key => :charge_output_defn_id
|
|
3
|
-
has_many :charge_output_defns, :class_name => 'ChargeOutputDefn', :foreign_key => :charge_output_defn_id
|
|
4
|
-
has_many :charge_output_defn_histories, :class_name => 'ChargeOutputDefnHistory', :foreign_key => :charge_output_defn_id
|
|
5
|
-
has_many :charge_output_defn_vars, :class_name => 'ChargeOutputDefnVar', :foreign_key => :charge_output_defn_id
|
|
6
|
-
has_many :atlanta_groups, :through => charge_output_defn_histories
|
|
7
|
-
has_many :atlanta_operators, :through => charge_output_defn_histories
|
|
8
|
-
has_many :expression_lists, :through => charge_output_defn_histories
|
|
9
|
-
has_many :variable_defns, :through => charge_output_defn_vars
|
|
10
|
-
validates_presence_of :charge_output_defn_id
|
|
11
|
-
validates_numericality_of :charge_output_defn_id, :allow_nil => false, :only_integer => true
|
|
12
|
-
validates_length_of :version_str, :allow_nil => true, :maximum => 255
|
|
13
|
-
end
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
class ChargeOutputDefnHistory < ActiveRecord::Base
|
|
2
|
-
belongs_to :charge_output_defn, :class_name => 'ChargeOutputDefn', :foreign_key => :charge_output_defn_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 :expression_list, :class_name => 'ExpressionList', :foreign_key => :expression_list_id
|
|
6
|
-
validates_presence_of :charge_output_defn_id
|
|
7
|
-
validates_numericality_of :charge_output_defn_id, :allow_nil => false, :only_integer => true
|
|
8
|
-
validates_presence_of :charge_output_defn_name
|
|
9
|
-
validates_length_of :charge_output_defn_name, :allow_nil => false, :maximum => 30
|
|
10
|
-
validates_presence_of :description
|
|
11
|
-
validates_length_of :description, :allow_nil => false, :maximum => 255
|
|
12
|
-
validates_presence_of :effective_start_date
|
|
13
|
-
validates_presence_of :effective_end_date
|
|
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_presence_of :view_name
|
|
20
|
-
validates_length_of :view_name, :allow_nil => false, :maximum => 30
|
|
21
|
-
validates_numericality_of :expression_list_id, :allow_nil => true, :only_integer => true
|
|
22
|
-
end
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
class ChargeOutputDefnVar < ActiveRecord::Base
|
|
2
|
-
belongs_to :charge_output_defn, :class_name => 'ChargeOutputDefn', :foreign_key => :charge_output_defn_id
|
|
3
|
-
belongs_to :variable_defn, :class_name => 'VariableDefn', :foreign_key => :variable_defn_id
|
|
4
|
-
validates_presence_of :charge_output_defn_id
|
|
5
|
-
validates_numericality_of :charge_output_defn_id, :allow_nil => false, :only_integer => true
|
|
6
|
-
validates_presence_of :effective_start_date
|
|
7
|
-
validates_presence_of :effective_end_date
|
|
8
|
-
validates_presence_of :variable_defn_id
|
|
9
|
-
validates_numericality_of :variable_defn_id, :allow_nil => false, :only_integer => true
|
|
10
|
-
end
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
class ConfigurationAttrType < ActiveRecord::Base
|
|
2
|
-
belongs_to :configuration_attr_type, :class_name => 'ConfigurationAttrType', :foreign_key => :configuration_attr_type_id
|
|
3
|
-
belongs_to :configuration_item_type, :class_name => 'ConfigurationItemType', :foreign_key => :configuration_item_type_id
|
|
4
|
-
belongs_to :attribute_type, :class_name => 'AttributeType', :foreign_key => :attribute_type_id
|
|
5
|
-
has_many :configuration_attr_types, :class_name => 'ConfigurationAttrType', :foreign_key => :configuration_attr_type_id
|
|
6
|
-
has_many :configuration_attributes, :class_name => 'ConfigurationAttribute', :foreign_key => :configuration_attr_type_id
|
|
7
|
-
has_many :attribute_types, :through => configuration_attr_types
|
|
8
|
-
has_many :configuration_item_types, :through => configuration_attr_types
|
|
9
|
-
has_many :configuration_items, :through => configuration_attributes
|
|
10
|
-
validates_presence_of :configuration_attr_type_id
|
|
11
|
-
validates_numericality_of :configuration_attr_type_id, :allow_nil => false, :only_integer => true
|
|
12
|
-
validates_presence_of :configuration_item_type_id
|
|
13
|
-
validates_numericality_of :configuration_item_type_id, :allow_nil => false, :only_integer => true
|
|
14
|
-
validates_presence_of :configuration_attr_name
|
|
15
|
-
validates_length_of :configuration_attr_name, :allow_nil => false, :maximum => 30
|
|
16
|
-
validates_presence_of :configuration_attr_type_seqnr
|
|
17
|
-
validates_numericality_of :configuration_attr_type_seqnr, :allow_nil => false, :only_integer => true
|
|
18
|
-
validates_presence_of :attribute_type_id
|
|
19
|
-
validates_numericality_of :attribute_type_id, :allow_nil => false, :only_integer => true
|
|
20
|
-
validates_numericality_of :related_config_item_type_id, :allow_nil => true, :only_integer => true
|
|
21
|
-
validates_length_of :description, :allow_nil => true, :maximum => 255
|
|
22
|
-
end
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
class ConfigurationAttribute < ActiveRecord::Base
|
|
2
|
-
belongs_to :configuration_item, :class_name => 'ConfigurationItem', :foreign_key => :configuration_item_id
|
|
3
|
-
belongs_to :configuration_attr_type, :class_name => 'ConfigurationAttrType', :foreign_key => :configuration_attr_type_id
|
|
4
|
-
validates_presence_of :configuration_item_id
|
|
5
|
-
validates_numericality_of :configuration_item_id, :allow_nil => false, :only_integer => true
|
|
6
|
-
validates_presence_of :configuration_attr_type_id
|
|
7
|
-
validates_numericality_of :configuration_attr_type_id, :allow_nil => false, :only_integer => true
|
|
8
|
-
validates_numericality_of :related_configuration_item_id, :allow_nil => true, :only_integer => true
|
|
9
|
-
validates_length_of :value, :allow_nil => true, :maximum => 255
|
|
10
|
-
validates_length_of :description, :allow_nil => true, :maximum => 255
|
|
11
|
-
end
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
class ConfigurationItem < ActiveRecord::Base
|
|
2
|
-
belongs_to :configuration_item, :class_name => 'ConfigurationItem', :foreign_key => :configuration_item_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 :configuration_item_type, :class_name => 'ConfigurationItemType', :foreign_key => :configuration_item_type_id
|
|
6
|
-
has_many :configuration_attributes, :class_name => 'ConfigurationAttribute', :foreign_key => :configuration_item_id
|
|
7
|
-
has_many :configuration_items, :class_name => 'ConfigurationItem', :foreign_key => :configuration_item_id
|
|
8
|
-
has_many :configuration_attr_types, :through => configuration_attributes
|
|
9
|
-
has_many :atlanta_groups, :through => configuration_items
|
|
10
|
-
has_many :atlanta_operators, :through => configuration_items
|
|
11
|
-
has_many :configuration_item_types, :through => configuration_items
|
|
12
|
-
validates_presence_of :configuration_item_id
|
|
13
|
-
validates_numericality_of :configuration_item_id, :allow_nil => false, :only_integer => true
|
|
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_presence_of :configuration_item_name
|
|
20
|
-
validates_length_of :configuration_item_name, :allow_nil => false, :maximum => 30
|
|
21
|
-
validates_presence_of :configuration_item_type_id
|
|
22
|
-
validates_numericality_of :configuration_item_type_id, :allow_nil => false, :only_integer => true
|
|
23
|
-
validates_presence_of :configuration_item_seqnr
|
|
24
|
-
validates_numericality_of :configuration_item_seqnr, :allow_nil => false, :only_integer => true
|
|
25
|
-
validates_length_of :description, :allow_nil => true, :maximum => 255
|
|
26
|
-
end
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
class ConfigurationItemType < ActiveRecord::Base
|
|
2
|
-
belongs_to :configuration_item_type, :class_name => 'ConfigurationItemType', :foreign_key => :configuration_item_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 :configuration_attr_types, :class_name => 'ConfigurationAttrType', :foreign_key => :configuration_item_type_id
|
|
6
|
-
has_many :configuration_items, :class_name => 'ConfigurationItem', :foreign_key => :configuration_item_type_id
|
|
7
|
-
has_many :configuration_item_types, :class_name => 'ConfigurationItemType', :foreign_key => :configuration_item_type_id
|
|
8
|
-
has_many :attribute_types, :through => configuration_attr_types
|
|
9
|
-
has_many :configuration_attr_types, :through => configuration_attr_types
|
|
10
|
-
has_many :atlanta_groups, :through => configuration_items
|
|
11
|
-
has_many :atlanta_operators, :through => configuration_items
|
|
12
|
-
has_many :configuration_items, :through => configuration_items
|
|
13
|
-
has_many :atlanta_groups, :through => configuration_item_types
|
|
14
|
-
has_many :atlanta_operators, :through => configuration_item_types
|
|
15
|
-
validates_presence_of :configuration_item_type_id
|
|
16
|
-
validates_numericality_of :configuration_item_type_id, :allow_nil => false, :only_integer => true
|
|
17
|
-
validates_presence_of :last_modified
|
|
18
|
-
validates_presence_of :configuration_item_type_name
|
|
19
|
-
validates_length_of :configuration_item_type_name, :allow_nil => false, :maximum => 30
|
|
20
|
-
validates_presence_of :configuration_item_type_seqnr
|
|
21
|
-
validates_numericality_of :configuration_item_type_seqnr, :allow_nil => false, :only_integer => true
|
|
22
|
-
validates_presence_of :description
|
|
23
|
-
validates_length_of :description, :allow_nil => false, :maximum => 255
|
|
24
|
-
validates_presence_of :atlanta_operator_id
|
|
25
|
-
validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
|
|
26
|
-
validates_presence_of :atlanta_group_id
|
|
27
|
-
validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
|
|
28
|
-
validates_length_of :version_str, :allow_nil => true, :maximum => 255
|
|
29
|
-
end
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
class Contract < ActiveRecord::Base
|
|
2
|
-
belongs_to :contract, :class_name => 'Contract', :foreign_key => :contract_id
|
|
3
|
-
has_many :contracts, :class_name => 'Contract', :foreign_key => :contract_id
|
|
4
|
-
has_many :contract_histories, :class_name => 'ContractHistory', :foreign_key => :contract_id
|
|
5
|
-
has_many :customer_queries, :class_name => 'CustomerQuery', :foreign_key => :contract_id
|
|
6
|
-
has_many :product_instance_histories, :class_name => 'ProductInstanceHistory', :foreign_key => :contract_id
|
|
7
|
-
has_many :service_histories, :class_name => 'ServiceHistory', :foreign_key => :contract_id
|
|
8
|
-
has_many :atlanta_groups, :through => contract_histories
|
|
9
|
-
has_many :customer_nodes, :through => contract_histories
|
|
10
|
-
has_many :contract_types, :through => contract_histories
|
|
11
|
-
has_many :atlanta_operators, :through => contract_histories
|
|
12
|
-
has_many :people, :through => contract_histories
|
|
13
|
-
has_many :atlanta_groups, :through => customer_queries
|
|
14
|
-
has_many :customer_nodes, :through => customer_queries
|
|
15
|
-
has_many :customer_query_types, :through => customer_queries
|
|
16
|
-
has_many :customer_queries, :through => customer_queries
|
|
17
|
-
has_many :currencies, :through => customer_queries
|
|
18
|
-
has_many :invoices, :through => customer_queries
|
|
19
|
-
has_many :accounts, :through => customer_queries
|
|
20
|
-
has_many :atlanta_operators, :through => customer_queries
|
|
21
|
-
has_many :services, :through => customer_queries
|
|
22
|
-
has_many :people, :through => customer_queries
|
|
23
|
-
has_many :customer_nodes, :through => product_instance_histories
|
|
24
|
-
has_many :atlanta_operators, :through => product_instance_histories
|
|
25
|
-
has_many :products, :through => product_instance_histories
|
|
26
|
-
has_many :product_instances, :through => product_instance_histories
|
|
27
|
-
has_many :customer_nodes, :through => service_histories
|
|
28
|
-
has_many :atlanta_operators, :through => service_histories
|
|
29
|
-
has_many :service_types, :through => service_histories
|
|
30
|
-
has_many :services, :through => service_histories
|
|
31
|
-
has_many :gl_codes, :through => service_histories
|
|
32
|
-
has_many :people, :through => service_histories
|
|
33
|
-
validates_presence_of :contract_id
|
|
34
|
-
validates_numericality_of :contract_id, :allow_nil => false, :only_integer => true
|
|
35
|
-
end
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
class ContractHistory < ActiveRecord::Base
|
|
2
|
-
belongs_to :contract, :class_name => 'Contract', :foreign_key => :contract_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 :contract_type, :class_name => 'ContractType', :foreign_key => :contract_type_id
|
|
6
|
-
belongs_to :customer_node, :class_name => 'CustomerNode', :foreign_key => :customer_node_id
|
|
7
|
-
belongs_to :person, :class_name => 'Person', :foreign_key => :person_id
|
|
8
|
-
validates_presence_of :contract_id
|
|
9
|
-
validates_numericality_of :contract_id, :allow_nil => false, :only_integer => true
|
|
10
|
-
validates_presence_of :last_modified
|
|
11
|
-
validates_presence_of :contract_name
|
|
12
|
-
validates_length_of :contract_name, :allow_nil => false, :maximum => 40
|
|
13
|
-
validates_length_of :customer_reference, :allow_nil => true, :maximum => 40
|
|
14
|
-
validates_presence_of :atlanta_operator_id
|
|
15
|
-
validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
|
|
16
|
-
validates_presence_of :atlanta_group_id
|
|
17
|
-
validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
|
|
18
|
-
validates_presence_of :effective_start_date
|
|
19
|
-
validates_presence_of :effective_end_date
|
|
20
|
-
validates_presence_of :contract_type_id
|
|
21
|
-
validates_numericality_of :contract_type_id, :allow_nil => false, :only_integer => true
|
|
22
|
-
validates_presence_of :customer_node_id
|
|
23
|
-
validates_numericality_of :customer_node_id, :allow_nil => false, :only_integer => true
|
|
24
|
-
validates_presence_of :person_id
|
|
25
|
-
validates_numericality_of :person_id, :allow_nil => false, :only_integer => true
|
|
26
|
-
validates_numericality_of :account_manager_operator_id, :allow_nil => true, :only_integer => true
|
|
27
|
-
validates_numericality_of :assigned_csr_operator_id, :allow_nil => true, :only_integer => true
|
|
28
|
-
validates_presence_of :contract_status_code
|
|
29
|
-
validates_numericality_of :contract_status_code, :allow_nil => false, :only_integer => true
|
|
30
|
-
validates_numericality_of :contract_duration, :allow_nil => true, :only_integer => true
|
|
31
|
-
validates_numericality_of :contract_duration_unit_code, :allow_nil => true, :only_integer => true
|
|
32
|
-
validates_length_of :comments, :allow_nil => true, :maximum => 2000
|
|
33
|
-
validates_length_of :overidden_contracts, :allow_nil => true, :maximum => 2000
|
|
34
|
-
validates_length_of :related_documents, :allow_nil => true, :maximum => 2000
|
|
35
|
-
validates_numericality_of :sales_channel_code, :allow_nil => true, :only_integer => true
|
|
36
|
-
validates_presence_of :select_all_ind_code
|
|
37
|
-
validates_numericality_of :select_all_ind_code, :allow_nil => false, :only_integer => true
|
|
38
|
-
validates_length_of :general_1, :allow_nil => true, :maximum => 255
|
|
39
|
-
validates_length_of :general_2, :allow_nil => true, :maximum => 255
|
|
40
|
-
validates_length_of :general_3, :allow_nil => true, :maximum => 255
|
|
41
|
-
validates_length_of :general_4, :allow_nil => true, :maximum => 255
|
|
42
|
-
validates_length_of :general_5, :allow_nil => true, :maximum => 255
|
|
43
|
-
validates_length_of :general_6, :allow_nil => true, :maximum => 255
|
|
44
|
-
validates_length_of :general_7, :allow_nil => true, :maximum => 255
|
|
45
|
-
validates_length_of :general_8, :allow_nil => true, :maximum => 255
|
|
46
|
-
validates_length_of :general_9, :allow_nil => true, :maximum => 255
|
|
47
|
-
validates_length_of :general_10, :allow_nil => true, :maximum => 255
|
|
48
|
-
end
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
class ContractType < ActiveRecord::Base
|
|
2
|
-
belongs_to :contract_type, :class_name => 'ContractType', :foreign_key => :contract_type_id
|
|
3
|
-
belongs_to :icon, :class_name => 'Icon', :foreign_key => :icon_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 :entity_validation, :class_name => 'EntityValidation', :foreign_key => :entity_validation_id
|
|
7
|
-
has_many :contract_histories, :class_name => 'ContractHistory', :foreign_key => :contract_type_id
|
|
8
|
-
has_many :contract_types, :class_name => 'ContractType', :foreign_key => :contract_type_id
|
|
9
|
-
has_many :contract_type_products, :class_name => 'ContractTypeProduct', :foreign_key => :contract_type_id
|
|
10
|
-
has_many :product_histories, :class_name => 'ProductHistory', :foreign_key => :contract_type_id
|
|
11
|
-
has_many :atlanta_groups, :through => contract_histories
|
|
12
|
-
has_many :customer_nodes, :through => contract_histories
|
|
13
|
-
has_many :atlanta_operators, :through => contract_histories
|
|
14
|
-
has_many :contracts, :through => contract_histories
|
|
15
|
-
has_many :people, :through => contract_histories
|
|
16
|
-
has_many :atlanta_groups, :through => contract_types
|
|
17
|
-
has_many :icons, :through => contract_types
|
|
18
|
-
has_many :atlanta_operators, :through => contract_types
|
|
19
|
-
has_many :entity_validations, :through => contract_types
|
|
20
|
-
has_many :service_types, :through => contract_type_products
|
|
21
|
-
has_many :products, :through => contract_type_products
|
|
22
|
-
has_many :atlanta_groups, :through => product_histories
|
|
23
|
-
has_many :icons, :through => product_histories
|
|
24
|
-
has_many :atlanta_operators, :through => product_histories
|
|
25
|
-
has_many :products, :through => product_histories
|
|
26
|
-
validates_presence_of :contract_type_id
|
|
27
|
-
validates_numericality_of :contract_type_id, :allow_nil => false, :only_integer => true
|
|
28
|
-
validates_presence_of :last_modified
|
|
29
|
-
validates_presence_of :contract_type_name
|
|
30
|
-
validates_length_of :contract_type_name, :allow_nil => false, :maximum => 40
|
|
31
|
-
validates_presence_of :description
|
|
32
|
-
validates_length_of :description, :allow_nil => false, :maximum => 255
|
|
33
|
-
validates_presence_of :icon_id
|
|
34
|
-
validates_numericality_of :icon_id, :allow_nil => false, :only_integer => true
|
|
35
|
-
validates_presence_of :contract_form_code
|
|
36
|
-
validates_numericality_of :contract_form_code, :allow_nil => false, :only_integer => true
|
|
37
|
-
validates_presence_of :atlanta_operator_id
|
|
38
|
-
validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
|
|
39
|
-
validates_presence_of :atlanta_group_id
|
|
40
|
-
validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
|
|
41
|
-
validates_numericality_of :account_manager_operator_id, :allow_nil => true, :only_integer => true
|
|
42
|
-
validates_numericality_of :contract_duration, :allow_nil => true, :only_integer => true
|
|
43
|
-
validates_numericality_of :contract_duration_unit_code, :allow_nil => true, :only_integer => true
|
|
44
|
-
validates_presence_of :fixed_duration_ind_code
|
|
45
|
-
validates_numericality_of :fixed_duration_ind_code, :allow_nil => false, :only_integer => true
|
|
46
|
-
validates_presence_of :contract_status_code
|
|
47
|
-
validates_numericality_of :contract_status_code, :allow_nil => false, :only_integer => true
|
|
48
|
-
validates_numericality_of :renegotiate_offset, :allow_nil => true, :only_integer => true
|
|
49
|
-
validates_numericality_of :renegotiate_offset_unit_code, :allow_nil => true, :only_integer => true
|
|
50
|
-
validates_numericality_of :expiry_warn_offset, :allow_nil => true, :only_integer => true
|
|
51
|
-
validates_numericality_of :expiry_warn_offset_unit_code, :allow_nil => true, :only_integer => true
|
|
52
|
-
validates_numericality_of :grace_period, :allow_nil => true, :only_integer => true
|
|
53
|
-
validates_numericality_of :grace_period_unit_code, :allow_nil => true, :only_integer => true
|
|
54
|
-
validates_numericality_of :sales_channel_code, :allow_nil => true, :only_integer => true
|
|
55
|
-
validates_numericality_of :entity_validation_id, :allow_nil => true, :only_integer => true
|
|
56
|
-
validates_numericality_of :search_entity_validation_id, :allow_nil => true, :only_integer => true
|
|
57
|
-
validates_length_of :version_str, :allow_nil => true, :maximum => 255
|
|
58
|
-
end
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
class ContractTypeProduct < ActiveRecord::Base
|
|
2
|
-
belongs_to :contract_type, :class_name => 'ContractType', :foreign_key => :contract_type_id
|
|
3
|
-
belongs_to :product, :class_name => 'Product', :foreign_key => :product_id
|
|
4
|
-
belongs_to :service_type, :class_name => 'ServiceType', :foreign_key => :service_type_id
|
|
5
|
-
validates_presence_of :contract_type_id
|
|
6
|
-
validates_numericality_of :contract_type_id, :allow_nil => false, :only_integer => true
|
|
7
|
-
validates_presence_of :product_id
|
|
8
|
-
validates_numericality_of :product_id, :allow_nil => false, :only_integer => true
|
|
9
|
-
validates_numericality_of :service_type_id, :allow_nil => true, :only_integer => true
|
|
10
|
-
validates_numericality_of :companion_product_id, :allow_nil => true, :only_integer => true
|
|
11
|
-
end
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
class ConversionRate < ActiveRecord::Base
|
|
2
|
-
belongs_to :atlanta_operator, :class_name => 'AtlantaOperator', :foreign_key => :atlanta_operator_id
|
|
3
|
-
validates_presence_of :from_currency_id
|
|
4
|
-
validates_numericality_of :from_currency_id, :allow_nil => false, :only_integer => true
|
|
5
|
-
validates_presence_of :effective_start_date
|
|
6
|
-
validates_presence_of :effective_end_date
|
|
7
|
-
validates_presence_of :to_currency_id
|
|
8
|
-
validates_numericality_of :to_currency_id, :allow_nil => false, :only_integer => true
|
|
9
|
-
validates_presence_of :last_modified
|
|
10
|
-
validates_presence_of :rate
|
|
11
|
-
validates_numericality_of :rate, :allow_nil => false
|
|
12
|
-
validates_presence_of :atlanta_operator_id
|
|
13
|
-
validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
|
|
14
|
-
end
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
class Currency < ActiveRecord::Base
|
|
2
|
-
belongs_to :currency, :class_name => 'Currency', :foreign_key => :currency_id
|
|
3
|
-
has_many :account_types, :class_name => 'AccountType', :foreign_key => :currency_id
|
|
4
|
-
has_many :adjustments, :class_name => 'Adjustment', :foreign_key => :currency_id
|
|
5
|
-
has_many :adjustment_batches, :class_name => 'AdjustmentBatch', :foreign_key => :currency_id
|
|
6
|
-
has_many :adjustment_types, :class_name => 'AdjustmentType', :foreign_key => :currency_id
|
|
7
|
-
has_many :bill_run_types, :class_name => 'BillRunType', :foreign_key => :currency_id
|
|
8
|
-
has_many :charges, :class_name => 'Charge', :foreign_key => :currency_id
|
|
9
|
-
has_many :currencies, :class_name => 'Currency', :foreign_key => :currency_id
|
|
10
|
-
has_many :currency_histories, :class_name => 'CurrencyHistory', :foreign_key => :currency_id
|
|
11
|
-
has_many :customer_node_histories, :class_name => 'CustomerNodeHistory', :foreign_key => :currency_id
|
|
12
|
-
has_many :customer_queries, :class_name => 'CustomerQuery', :foreign_key => :currency_id
|
|
13
|
-
has_many :normalised_events, :class_name => 'NormalisedEvent', :foreign_key => :currency_id
|
|
14
|
-
has_many :normalised_event_errors, :class_name => 'NormalisedEventError', :foreign_key => :currency_id
|
|
15
|
-
has_many :payments, :class_name => 'Payment', :foreign_key => :currency_id
|
|
16
|
-
has_many :payment_batches, :class_name => 'PaymentBatch', :foreign_key => :currency_id
|
|
17
|
-
has_many :payment_types, :class_name => 'PaymentType', :foreign_key => :currency_id
|
|
18
|
-
has_many :rgp_normalised_events, :class_name => 'RgpNormalisedEvent', :foreign_key => :currency_id
|
|
19
|
-
has_many :subtotal_histories, :class_name => 'SubtotalHistory', :foreign_key => :currency_id
|
|
20
|
-
has_many :tariff_histories, :class_name => 'TariffHistory', :foreign_key => :currency_id
|
|
21
|
-
has_many :atlanta_groups, :through => account_types
|
|
22
|
-
has_many :atlanta_operators, :through => account_types
|
|
23
|
-
has_many :invoice_types, :through => account_types
|
|
24
|
-
has_many :account_types, :through => account_types
|
|
25
|
-
has_many :customer_queries, :through => adjustments
|
|
26
|
-
has_many :invoices, :through => adjustments
|
|
27
|
-
has_many :adjustments, :through => adjustments
|
|
28
|
-
has_many :atlanta_operators, :through => adjustments
|
|
29
|
-
has_many :adjustment_types, :through => adjustments
|
|
30
|
-
has_many :adjustment_batches, :through => adjustments
|
|
31
|
-
has_many :atlanta_operators, :through => adjustment_batches
|
|
32
|
-
has_many :adjustment_types, :through => adjustment_batches
|
|
33
|
-
has_many :adjustment_batches, :through => adjustment_batches
|
|
34
|
-
has_many :atlanta_groups, :through => adjustment_types
|
|
35
|
-
has_many :atlanta_operators, :through => adjustment_types
|
|
36
|
-
has_many :adjustment_types, :through => adjustment_types
|
|
37
|
-
has_many :entity_validations, :through => adjustment_types
|
|
38
|
-
has_many :atlanta_groups, :through => bill_run_types
|
|
39
|
-
has_many :bill_run_types, :through => bill_run_types
|
|
40
|
-
has_many :atlanta_operators, :through => bill_run_types
|
|
41
|
-
has_many :subtotals, :through => charges
|
|
42
|
-
has_many :customer_nodes, :through => charges
|
|
43
|
-
has_many :invoices, :through => charges
|
|
44
|
-
has_many :adjustments, :through => charges
|
|
45
|
-
has_many :accounts, :through => charges
|
|
46
|
-
has_many :tariffs, :through => charges
|
|
47
|
-
has_many :services, :through => charges
|
|
48
|
-
has_many :receivable_types, :through => charges
|
|
49
|
-
has_many :normalised_events, :through => charges
|
|
50
|
-
has_many :gl_codes, :through => charges
|
|
51
|
-
has_many :payments, :through => charges
|
|
52
|
-
has_many :charges, :through => charges
|
|
53
|
-
has_many :atlanta_groups, :through => currency_histories
|
|
54
|
-
has_many :atlanta_operators, :through => currency_histories
|
|
55
|
-
has_many :atlanta_groups, :through => customer_node_histories
|
|
56
|
-
has_many :customer_nodes, :through => customer_node_histories
|
|
57
|
-
has_many :atlanta_operators, :through => customer_node_histories
|
|
58
|
-
has_many :customer_node_types, :through => customer_node_histories
|
|
59
|
-
has_many :schedules, :through => customer_node_histories
|
|
60
|
-
has_many :gl_codes, :through => customer_node_histories
|
|
61
|
-
has_many :people, :through => customer_node_histories
|
|
62
|
-
has_many :atlanta_groups, :through => customer_queries
|
|
63
|
-
has_many :customer_nodes, :through => customer_queries
|
|
64
|
-
has_many :customer_query_types, :through => customer_queries
|
|
65
|
-
has_many :customer_queries, :through => customer_queries
|
|
66
|
-
has_many :invoices, :through => customer_queries
|
|
67
|
-
has_many :accounts, :through => customer_queries
|
|
68
|
-
has_many :atlanta_operators, :through => customer_queries
|
|
69
|
-
has_many :services, :through => customer_queries
|
|
70
|
-
has_many :contracts, :through => customer_queries
|
|
71
|
-
has_many :people, :through => customer_queries
|
|
72
|
-
has_many :normalised_event_types, :through => normalised_events
|
|
73
|
-
has_many :normalised_event_files, :through => normalised_events
|
|
74
|
-
has_many :bill_runs, :through => normalised_events
|
|
75
|
-
has_many :normalised_events, :through => normalised_events
|
|
76
|
-
has_many :normalised_event_types, :through => normalised_event_errors
|
|
77
|
-
has_many :error_messages, :through => normalised_event_errors
|
|
78
|
-
has_many :normalised_event_files, :through => normalised_event_errors
|
|
79
|
-
has_many :reprocessed_files, :through => normalised_event_errors
|
|
80
|
-
has_many :bill_runs, :through => normalised_event_errors
|
|
81
|
-
has_many :normalised_events, :through => normalised_event_errors
|
|
82
|
-
has_many :payment_types, :through => payments
|
|
83
|
-
has_many :customer_nodes, :through => payments
|
|
84
|
-
has_many :invoices, :through => payments
|
|
85
|
-
has_many :atlanta_operators, :through => payments
|
|
86
|
-
has_many :payment_batches, :through => payments
|
|
87
|
-
has_many :people, :through => payments
|
|
88
|
-
has_many :payments, :through => payments
|
|
89
|
-
has_many :payment_types, :through => payment_batches
|
|
90
|
-
has_many :atlanta_operators, :through => payment_batches
|
|
91
|
-
has_many :payment_batches, :through => payment_batches
|
|
92
|
-
has_many :atlanta_groups, :through => payment_types
|
|
93
|
-
has_many :payment_types, :through => payment_types
|
|
94
|
-
has_many :atlanta_operators, :through => payment_types
|
|
95
|
-
has_many :entity_validations, :through => payment_types
|
|
96
|
-
has_many :normalised_event_types, :through => rgp_normalised_events
|
|
97
|
-
has_many :customer_nodes, :through => rgp_normalised_events
|
|
98
|
-
has_many :fac_group_instances, :through => rgp_normalised_events
|
|
99
|
-
has_many :tariffs, :through => rgp_normalised_events
|
|
100
|
-
has_many :equipment, :through => rgp_normalised_events
|
|
101
|
-
has_many :services, :through => rgp_normalised_events
|
|
102
|
-
has_many :bill_runs, :through => rgp_normalised_events
|
|
103
|
-
has_many :rgp_files, :through => rgp_normalised_events
|
|
104
|
-
has_many :product_instances, :through => rgp_normalised_events
|
|
105
|
-
has_many :atlanta_groups, :through => subtotal_histories
|
|
106
|
-
has_many :subtotals, :through => subtotal_histories
|
|
107
|
-
has_many :atlanta_operators, :through => subtotal_histories
|
|
108
|
-
has_many :receivable_types, :through => subtotal_histories
|
|
109
|
-
has_many :gl_codes, :through => subtotal_histories
|
|
110
|
-
has_many :atlanta_groups, :through => tariff_histories
|
|
111
|
-
has_many :atlanta_operators, :through => tariff_histories
|
|
112
|
-
has_many :tariffs, :through => tariff_histories
|
|
113
|
-
has_many :charge_categories, :through => tariff_histories
|
|
114
|
-
has_many :receivable_types, :through => tariff_histories
|
|
115
|
-
validates_presence_of :currency_id
|
|
116
|
-
validates_numericality_of :currency_id, :allow_nil => false, :only_integer => true
|
|
117
|
-
validates_length_of :version_str, :allow_nil => true, :maximum => 255
|
|
118
|
-
end
|