magic_model_generator 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +0 -0
- data/README +3 -0
- data/Rakefile +96 -0
- data/examples/singleview/account.rb +94 -0
- data/examples/singleview/account_history.rb +21 -0
- data/examples/singleview/account_reservation.rb +26 -0
- data/examples/singleview/account_type.rb +54 -0
- data/examples/singleview/account_type_aging.rb +17 -0
- data/examples/singleview/account_type_variable.rb +8 -0
- data/examples/singleview/address.rb +8 -0
- data/examples/singleview/address_format.rb +49 -0
- data/examples/singleview/address_history.rb +28 -0
- data/examples/singleview/adjustment.rb +97 -0
- data/examples/singleview/adjustment_batch.rb +42 -0
- data/examples/singleview/adjustment_invoice.rb +17 -0
- data/examples/singleview/adjustment_type.rb +54 -0
- data/examples/singleview/adjustment_type_variable.rb +8 -0
- data/examples/singleview/archive_lock_t.rb +11 -0
- data/examples/singleview/archive_result.rb +15 -0
- data/examples/singleview/archive_type.rb +31 -0
- data/examples/singleview/archive_type_table_list.rb +15 -0
- data/examples/singleview/atai_error_name.rb +7 -0
- data/examples/singleview/atlanta_form.rb +23 -0
- data/examples/singleview/atlanta_form_field.rb +12 -0
- data/examples/singleview/atlanta_group.rb +285 -0
- data/examples/singleview/atlanta_help_entry.rb +32 -0
- data/examples/singleview/atlanta_operator.rb +356 -0
- data/examples/singleview/atlanta_profile.rb +47 -0
- data/examples/singleview/atlanta_profile_func_map.rb +8 -0
- data/examples/singleview/atlanta_profile_group_map.rb +10 -0
- data/examples/singleview/atlanta_profile_role_map.rb +8 -0
- data/examples/singleview/atlanta_profile_wf_map.rb +10 -0
- data/examples/singleview/atlanta_role.rb +23 -0
- data/examples/singleview/atlanta_table_partition.rb +39 -0
- data/examples/singleview/attribute_type.rb +75 -0
- data/examples/singleview/attribute_type_variable.rb +8 -0
- data/examples/singleview/bill_run.rb +93 -0
- data/examples/singleview/bill_run_operation.rb +54 -0
- data/examples/singleview/bill_run_type.rb +39 -0
- data/examples/singleview/bill_run_type_status.rb +12 -0
- data/examples/singleview/bill_run_type_task.rb +12 -0
- data/examples/singleview/cache.rb +23 -0
- data/examples/singleview/cache_field.rb +13 -0
- data/examples/singleview/can_act_charge.rb +16 -0
- data/examples/singleview/charge.rb +67 -0
- data/examples/singleview/charge_category.rb +45 -0
- data/examples/singleview/charge_output_defn.rb +13 -0
- data/examples/singleview/charge_output_defn_history.rb +22 -0
- data/examples/singleview/charge_output_defn_var.rb +10 -0
- data/examples/singleview/configuration_attr_type.rb +22 -0
- data/examples/singleview/configuration_attribute.rb +11 -0
- data/examples/singleview/configuration_item.rb +26 -0
- data/examples/singleview/configuration_item_type.rb +29 -0
- data/examples/singleview/contract.rb +35 -0
- data/examples/singleview/contract_history.rb +48 -0
- data/examples/singleview/contract_type.rb +58 -0
- data/examples/singleview/contract_type_product.rb +11 -0
- data/examples/singleview/conversion_rate.rb +14 -0
- data/examples/singleview/currency.rb +118 -0
- data/examples/singleview/currency_history.rb +28 -0
- data/examples/singleview/customer_contact.rb +12 -0
- data/examples/singleview/customer_node.rb +166 -0
- data/examples/singleview/customer_node_bill_run.rb +12 -0
- data/examples/singleview/customer_node_charge_cat.rb +22 -0
- data/examples/singleview/customer_node_correspond.rb +12 -0
- data/examples/singleview/customer_node_da.rb +11 -0
- data/examples/singleview/customer_node_da_array.rb +35 -0
- data/examples/singleview/customer_node_history.rb +86 -0
- data/examples/singleview/customer_node_inv_format.rb +33 -0
- data/examples/singleview/customer_node_type.rb +89 -0
- data/examples/singleview/customer_node_type_cc.rb +18 -0
- data/examples/singleview/customer_node_type_da.rb +8 -0
- data/examples/singleview/customer_node_type_var.rb +8 -0
- data/examples/singleview/customer_query.rb +80 -0
- data/examples/singleview/customer_query_progress.rb +20 -0
- data/examples/singleview/customer_query_type.rb +49 -0
- data/examples/singleview/customer_query_type_var.rb +8 -0
- data/examples/singleview/delete_cascade.rb +13 -0
- data/examples/singleview/delete_cascade_group.rb +21 -0
- data/examples/singleview/delete_constraint.rb +9 -0
- data/examples/singleview/derived_attribute.rb +32 -0
- data/examples/singleview/derived_attribute_array.rb +32 -0
- data/examples/singleview/derived_attribute_history.rb +41 -0
- data/examples/singleview/derived_attribute_index.rb +13 -0
- data/examples/singleview/derived_attribute_value.rb +19 -0
- data/examples/singleview/dil.rb +18 -0
- data/examples/singleview/dil_history.rb +24 -0
- data/examples/singleview/dil_reference.rb +9 -0
- data/examples/singleview/dil_validation_t.rb +6 -0
- data/examples/singleview/dil_variable.rb +10 -0
- data/examples/singleview/dunning_t.rb +14 -0
- data/examples/singleview/entity_mapping.rb +11 -0
- data/examples/singleview/entity_remap.rb +22 -0
- data/examples/singleview/entity_validation.rb +70 -0
- data/examples/singleview/entity_validation_list.rb +15 -0
- data/examples/singleview/entity_validation_variable.rb +8 -0
- data/examples/singleview/equipment.rb +28 -0
- data/examples/singleview/equipment_history.rb +62 -0
- data/examples/singleview/equipment_type.rb +57 -0
- data/examples/singleview/equipment_type_variable.rb +8 -0
- data/examples/singleview/error_group.rb +18 -0
- data/examples/singleview/error_message.rb +65 -0
- data/examples/singleview/evs_address_equiv.rb +17 -0
- data/examples/singleview/evs_alias.rb +12 -0
- data/examples/singleview/evs_attribute_type_key.rb +7 -0
- data/examples/singleview/evt_equipment_changeover.rb +9 -0
- data/examples/singleview/expression_list.rb +27 -0
- data/examples/singleview/expression_list_value.rb +17 -0
- data/examples/singleview/fac_group_compatibility.rb +11 -0
- data/examples/singleview/fac_group_instance.rb +19 -0
- data/examples/singleview/fac_group_instance_hist.rb +16 -0
- data/examples/singleview/facility.rb +9 -0
- data/examples/singleview/facility_group.rb +21 -0
- data/examples/singleview/facility_group_history.rb +21 -0
- data/examples/singleview/foreign_key.rb +9 -0
- data/examples/singleview/function_defn.rb +16 -0
- data/examples/singleview/function_defn_history.rb +35 -0
- data/examples/singleview/function_role.rb +24 -0
- data/examples/singleview/function_role_map.rb +10 -0
- data/examples/singleview/gl_code.rb +65 -0
- data/examples/singleview/gl_code_history.rb +20 -0
- data/examples/singleview/gl_upload.rb +10 -0
- data/examples/singleview/icon.rb +64 -0
- data/examples/singleview/inv_loop_t.rb +4 -0
- data/examples/singleview/inv_report_accounts_t.rb +25 -0
- data/examples/singleview/invoice.rb +134 -0
- data/examples/singleview/invoice_contents.rb +14 -0
- data/examples/singleview/invoice_format.rb +31 -0
- data/examples/singleview/invoice_format_history.rb +29 -0
- data/examples/singleview/invoice_message.rb +17 -0
- data/examples/singleview/invoice_message_history.rb +31 -0
- data/examples/singleview/invoice_message_variable.rb +10 -0
- data/examples/singleview/invoice_receivable_type.rb +13 -0
- data/examples/singleview/invoice_type.rb +23 -0
- data/examples/singleview/invoice_type_history.rb +26 -0
- data/examples/singleview/invoice_type_variable.rb +10 -0
- data/examples/singleview/isp_email_address.rb +17 -0
- data/examples/singleview/licence_current_values.rb +12 -0
- data/examples/singleview/menu_role_map.rb +10 -0
- data/examples/singleview/normalised_event.rb +119 -0
- data/examples/singleview/normalised_event_error.rb +91 -0
- data/examples/singleview/normalised_event_file.rb +75 -0
- data/examples/singleview/normalised_event_ft.rb +18 -0
- data/examples/singleview/normalised_event_ft_hist.rb +25 -0
- data/examples/singleview/normalised_event_ft_var.rb +10 -0
- data/examples/singleview/normalised_event_type.rb +54 -0
- data/examples/singleview/output_device.rb +37 -0
- data/examples/singleview/output_method.rb +32 -0
- data/examples/singleview/output_method_type.rb +38 -0
- data/examples/singleview/output_select.rb +17 -0
- data/examples/singleview/payment.rb +102 -0
- data/examples/singleview/payment_batch.rb +43 -0
- data/examples/singleview/payment_invoice.rb +17 -0
- data/examples/singleview/payment_item.rb +15 -0
- data/examples/singleview/payment_type.rb +57 -0
- data/examples/singleview/payment_type_variable.rb +8 -0
- data/examples/singleview/person.rb +60 -0
- data/examples/singleview/person_history.rb +69 -0
- data/examples/singleview/person_type.rb +39 -0
- data/examples/singleview/plan_table.rb +27 -0
- data/examples/singleview/product.rb +45 -0
- data/examples/singleview/product_compatibility.rb +13 -0
- data/examples/singleview/product_derived_attribute.rb +10 -0
- data/examples/singleview/product_facility_group.rb +16 -0
- data/examples/singleview/product_group.rb +12 -0
- data/examples/singleview/product_group_history.rb +20 -0
- data/examples/singleview/product_history.rb +35 -0
- data/examples/singleview/product_in_product_group.rb +12 -0
- data/examples/singleview/product_instance.rb +41 -0
- data/examples/singleview/product_instance_equip.rb +21 -0
- data/examples/singleview/product_instance_history.rb +37 -0
- data/examples/singleview/product_instance_service.rb +17 -0
- data/examples/singleview/product_payment_item.rb +19 -0
- data/examples/singleview/product_service_type.rb +32 -0
- data/examples/singleview/product_service_type_equip.rb +20 -0
- data/examples/singleview/product_subtotal.rb +14 -0
- data/examples/singleview/product_tariff.rb +16 -0
- data/examples/singleview/racr_clec_t1.rb +12 -0
- data/examples/singleview/racr_clec_t2.rb +12 -0
- data/examples/singleview/racr_clec_t3.rb +28 -0
- data/examples/singleview/racr_t.rb +29 -0
- data/examples/singleview/ragd_clec_t.rb +47 -0
- data/examples/singleview/ragd_t.rb +28 -0
- data/examples/singleview/rapc_t.rb +27 -0
- data/examples/singleview/rdfd_cmn_t.rb +17 -0
- data/examples/singleview/rdfd_t.rb +16 -0
- data/examples/singleview/receivable_type.rb +49 -0
- data/examples/singleview/receivable_type_history.rb +25 -0
- data/examples/singleview/reference_code.rb +17 -0
- data/examples/singleview/reference_type.rb +32 -0
- data/examples/singleview/release_info.rb +10 -0
- data/examples/singleview/report_reference_type.rb +14 -0
- data/examples/singleview/report_reference_type_defs.rb +12 -0
- data/examples/singleview/reprocessed_file.rb +32 -0
- data/examples/singleview/rgp_file.rb +22 -0
- data/examples/singleview/rgp_normalised_event.rb +78 -0
- data/examples/singleview/rmag_t.rb +32 -0
- data/examples/singleview/rpmr_t.rb +27 -0
- data/examples/singleview/rpsi_t.rb +24 -0
- data/examples/singleview/rser_t.rb +13 -0
- data/examples/singleview/rshu_cmn_t.rb +31 -0
- data/examples/singleview/schedule.rb +91 -0
- data/examples/singleview/schedule_task_type.rb +43 -0
- data/examples/singleview/service.rb +88 -0
- data/examples/singleview/service_bill_run_t.rb +12 -0
- data/examples/singleview/service_charge_category.rb +22 -0
- data/examples/singleview/service_da.rb +11 -0
- data/examples/singleview/service_da_array.rb +35 -0
- data/examples/singleview/service_duplicate.rb +4 -0
- data/examples/singleview/service_history.rb +59 -0
- data/examples/singleview/service_type.rb +54 -0
- data/examples/singleview/service_type_cc.rb +18 -0
- data/examples/singleview/service_type_da.rb +8 -0
- data/examples/singleview/service_type_equip_type.rb +11 -0
- data/examples/singleview/subtotal.rb +48 -0
- data/examples/singleview/subtotal_history.rb +59 -0
- data/examples/singleview/subtotal_rating_delta.rb +20 -0
- data/examples/singleview/subtotal_rating_value.rb +21 -0
- data/examples/singleview/subtotal_term.rb +16 -0
- data/examples/singleview/subtotal_value.rb +18 -0
- data/examples/singleview/summary_of_change.rb +31 -0
- data/examples/singleview/summary_of_change_ev.rb +18 -0
- data/examples/singleview/summary_of_change_view.rb +22 -0
- data/examples/singleview/t2_anumber_france.rb +22 -0
- data/examples/singleview/t2_anumber_italy.rb +22 -0
- data/examples/singleview/t2_anumber_netherlands.rb +24 -0
- data/examples/singleview/t2_anumber_portugal.rb +22 -0
- data/examples/singleview/t2_anumber_spain.rb +22 -0
- data/examples/singleview/t2_anumber_switzerland.rb +24 -0
- data/examples/singleview/t2_bankreference_austria.rb +7 -0
- data/examples/singleview/t2_bankreference_belgium.rb +6 -0
- data/examples/singleview/t2_bankreference_france.rb +7 -0
- data/examples/singleview/t2_bankreference_germany.rb +7 -0
- data/examples/singleview/t2_bankreference_italy.rb +7 -0
- data/examples/singleview/t2_bankreference_portugal.rb +7 -0
- data/examples/singleview/t2_cc_provrequests.rb +19 -0
- data/examples/singleview/t2_emf_info.rb +12 -0
- data/examples/singleview/t2_ev_column_label_mapping.rb +9 -0
- data/examples/singleview/t2_historytable.rb +26 -0
- data/examples/singleview/t2_inv_revoked_invoice.rb +11 -0
- data/examples/singleview/t2_inv_suppress_invoice.rb +13 -0
- data/examples/singleview/t2_national_number_plan.rb +8 -0
- data/examples/singleview/t2_pay_statement.rb +28 -0
- data/examples/singleview/t2_prov_req_action.rb +22 -0
- data/examples/singleview/t2_prov_request.rb +32 -0
- data/examples/singleview/t2_rep_brr_t.rb +19 -0
- data/examples/singleview/t2_rep_trr_t.rb +19 -0
- data/examples/singleview/t2_rep_ubr_t.rb +19 -0
- data/examples/singleview/t2_taxclass.rb +8 -0
- data/examples/singleview/t2_zipcode_austria.rb +8 -0
- data/examples/singleview/t2_zipcode_france.rb +8 -0
- data/examples/singleview/t2_zipcode_germany.rb +8 -0
- data/examples/singleview/t2_zipcode_hungary.rb +8 -0
- data/examples/singleview/t2_zipcode_luxembourg.rb +8 -0
- data/examples/singleview/t2_zipcode_netherlands.rb +8 -0
- data/examples/singleview/t2_zipcode_portugal.rb +9 -0
- data/examples/singleview/t2_zipcode_spain.rb +8 -0
- data/examples/singleview/t2_zipcode_switzerland.rb +8 -0
- data/examples/singleview/table_import_order.rb +6 -0
- data/examples/singleview/tariff.rb +51 -0
- data/examples/singleview/tariff_charge.rb +33 -0
- data/examples/singleview/tariff_charge_defn.rb +18 -0
- data/examples/singleview/tariff_condition_defn.rb +19 -0
- data/examples/singleview/tariff_history.rb +70 -0
- data/examples/singleview/tariff_recurring.rb +36 -0
- data/examples/singleview/task_queue.rb +130 -0
- data/examples/singleview/task_queue_result.rb +10 -0
- data/examples/singleview/template.rb +18 -0
- data/examples/singleview/template_history.rb +30 -0
- data/examples/singleview/template_reference.rb +9 -0
- data/examples/singleview/template_variable.rb +10 -0
- data/examples/singleview/trt_clec_treatment.rb +13 -0
- data/examples/singleview/variable_defn.rb +48 -0
- data/examples/singleview/variable_defn_dependency.rb +11 -0
- data/examples/singleview/variable_defn_direct.rb +15 -0
- data/examples/singleview/variable_defn_history.rb +22 -0
- data/examples/singleview/work_force.rb +25 -0
- data/examples/singleview/xpsi_addr_val_commtax21.rb +24 -0
- data/examples/singleview/xpsi_addr_val_msag.rb +24 -0
- data/examples/singleview/xpsi_addr_val_zip.rb +14 -0
- data/examples/singleview/xpsi_ne_batch.rb +20 -0
- data/examples/singleview/xpsi_product_batch.rb +18 -0
- data/examples/singleview/xpsi_product_status.rb +14 -0
- data/examples/singleview/xpsi_tax_error.rb +34 -0
- data/examples/singleview/xpsi_trt_revoke.rb +68 -0
- data/examples/singleview/xpsi_trt_revoke_prod_inst.rb +12 -0
- data/examples/singleview/xpsi_update_capture.rb +35 -0
- data/lib/activerecord/base.rb +12 -0
- data/lib/hash_tricks.rb +21 -0
- data/lib/magic_model_generator.rb +8 -0
- data/lib/magic_model_generator/schema.rb +205 -0
- data/lib/magic_model_generator/validations.rb +48 -0
- data/lib/magic_model_generator/version.rb +9 -0
- data/lib/rails/generator/dynamic_named_base.rb +99 -0
- data/lib/rails/generator/manifest.rb +8 -0
- data/magic_model_generator.rb +88 -0
- data/templates/model.rb +3 -0
- data/test/magic_model_generator_test.rb +11 -0
- data/test/test_helper.rb +2 -0
- metadata +366 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
class DilReference < ActiveRecord::Base
|
2
|
+
belongs_to :dil, :class_name => 'Dil', :foreign_key => :dil_id
|
3
|
+
validates_presence_of :dil_id
|
4
|
+
validates_numericality_of :dil_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 :referenced_dil_id
|
8
|
+
validates_numericality_of :referenced_dil_id, :allow_nil => false, :only_integer => true
|
9
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class DilValidationT < ActiveRecord::Base
|
2
|
+
belongs_to :schedule, :class_name => 'Schedule', :foreign_key => :schedule_id
|
3
|
+
validates_presence_of :schedule_id
|
4
|
+
validates_numericality_of :schedule_id, :allow_nil => false, :only_integer => true
|
5
|
+
validates_presence_of :dil_specification
|
6
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
class DilVariable < ActiveRecord::Base
|
2
|
+
belongs_to :dil, :class_name => 'Dil', :foreign_key => :dil_id
|
3
|
+
belongs_to :variable_defn, :class_name => 'VariableDefn', :foreign_key => :variable_defn_id
|
4
|
+
validates_presence_of :dil_id
|
5
|
+
validates_numericality_of :dil_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
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class DunningT < ActiveRecord::Base
|
2
|
+
belongs_to :customer_node, :class_name => 'CustomerNode', :foreign_key => :customer_node_id
|
3
|
+
belongs_to :invoice, :class_name => 'Invoice', :foreign_key => :invoice_id
|
4
|
+
validates_presence_of :temp_data_id
|
5
|
+
validates_numericality_of :temp_data_id, :allow_nil => false, :only_integer => true
|
6
|
+
validates_presence_of :seqnr
|
7
|
+
validates_numericality_of :seqnr, :allow_nil => false, :only_integer => true
|
8
|
+
validates_presence_of :customer_node_id
|
9
|
+
validates_numericality_of :customer_node_id, :allow_nil => false, :only_integer => true
|
10
|
+
validates_numericality_of :invoice_id, :allow_nil => true, :only_integer => true
|
11
|
+
validates_numericality_of :invoice_seqnr, :allow_nil => true, :only_integer => true
|
12
|
+
validates_numericality_of :dunning_action_code, :allow_nil => true, :only_integer => true
|
13
|
+
validates_numericality_of :current_ind_code, :allow_nil => true, :only_integer => true
|
14
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
class EntityMapping < ActiveRecord::Base
|
2
|
+
validates_presence_of :entity_name
|
3
|
+
validates_length_of :entity_name, :allow_nil => false, :maximum => 30
|
4
|
+
validates_presence_of :user_entity_name
|
5
|
+
validates_length_of :user_entity_name, :allow_nil => false, :maximum => 40
|
6
|
+
validates_presence_of :user_entity_name_plural
|
7
|
+
validates_length_of :user_entity_name_plural, :allow_nil => false, :maximum => 40
|
8
|
+
validates_length_of :entity_table_name, :allow_nil => true, :maximum => 30
|
9
|
+
validates_length_of :entity_column_name, :allow_nil => true, :maximum => 30
|
10
|
+
validates_length_of :entity_where_clause, :allow_nil => true, :maximum => 2000
|
11
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
class EntityRemap < ActiveRecord::Base
|
2
|
+
belongs_to :task_queue, :class_name => 'TaskQueue', :foreign_key => :task_queue_id
|
3
|
+
belongs_to :error_message, :class_name => 'ErrorMessage', :foreign_key => :error_message_id
|
4
|
+
belongs_to :customer_node, :class_name => 'CustomerNode', :foreign_key => :customer_node_id
|
5
|
+
validates_presence_of :task_queue_id
|
6
|
+
validates_numericality_of :task_queue_id, :allow_nil => false, :only_integer => true
|
7
|
+
validates_presence_of :entity_name
|
8
|
+
validates_length_of :entity_name, :allow_nil => false, :maximum => 30
|
9
|
+
validates_numericality_of :old_entity_id, :allow_nil => true, :only_integer => true
|
10
|
+
validates_numericality_of :new_entity_id, :allow_nil => true, :only_integer => true
|
11
|
+
validates_numericality_of :parent_entity_id, :allow_nil => true, :only_integer => true
|
12
|
+
validates_length_of :partition_name, :allow_nil => true, :maximum => 30
|
13
|
+
validates_presence_of :dest_partition_nr
|
14
|
+
validates_numericality_of :dest_partition_nr, :allow_nil => false, :only_integer => true
|
15
|
+
validates_presence_of :last_modified
|
16
|
+
validates_presence_of :status_code
|
17
|
+
validates_numericality_of :status_code, :allow_nil => false, :only_integer => true
|
18
|
+
validates_numericality_of :rows_updated, :allow_nil => true, :only_integer => true
|
19
|
+
validates_numericality_of :error_message_id, :allow_nil => true, :only_integer => true
|
20
|
+
validates_length_of :error_message, :allow_nil => true, :maximum => 4000
|
21
|
+
validates_numericality_of :customer_node_id, :allow_nil => true, :only_integer => true
|
22
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
class EntityValidation < ActiveRecord::Base
|
2
|
+
belongs_to :entity_validation, :class_name => 'EntityValidation', :foreign_key => :entity_validation_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 :address_formats, :class_name => 'AddressFormat', :foreign_key => :entity_validation_id
|
6
|
+
has_many :adjustment_types, :class_name => 'AdjustmentType', :foreign_key => :entity_validation_id
|
7
|
+
has_many :contract_types, :class_name => 'ContractType', :foreign_key => :entity_validation_id
|
8
|
+
has_many :derived_attribute_histories, :class_name => 'DerivedAttributeHistory', :foreign_key => :entity_validation_id
|
9
|
+
has_many :entity_validations, :class_name => 'EntityValidation', :foreign_key => :entity_validation_id
|
10
|
+
has_many :entity_validation_lists, :class_name => 'EntityValidationList', :foreign_key => :entity_validation_id
|
11
|
+
has_many :entity_validation_variables, :class_name => 'EntityValidationVariable', :foreign_key => :entity_validation_id
|
12
|
+
has_many :invoice_format_histories, :class_name => 'InvoiceFormatHistory', :foreign_key => :entity_validation_id
|
13
|
+
has_many :payment_types, :class_name => 'PaymentType', :foreign_key => :entity_validation_id
|
14
|
+
has_many :person_types, :class_name => 'PersonType', :foreign_key => :entity_validation_id
|
15
|
+
has_many :schedule_task_types, :class_name => 'ScheduleTaskType', :foreign_key => :entity_validation_id
|
16
|
+
has_many :t2_ev_column_label_mappings, :class_name => 'T2EvColumnLabelMapping', :foreign_key => :entity_validation_id
|
17
|
+
has_many :atlanta_groups, :through => address_formats
|
18
|
+
has_many :address_formats, :through => address_formats
|
19
|
+
has_many :atlanta_operators, :through => address_formats
|
20
|
+
has_many :atlanta_groups, :through => adjustment_types
|
21
|
+
has_many :currencies, :through => adjustment_types
|
22
|
+
has_many :atlanta_operators, :through => adjustment_types
|
23
|
+
has_many :adjustment_types, :through => adjustment_types
|
24
|
+
has_many :atlanta_groups, :through => contract_types
|
25
|
+
has_many :icons, :through => contract_types
|
26
|
+
has_many :contract_types, :through => contract_types
|
27
|
+
has_many :atlanta_operators, :through => contract_types
|
28
|
+
has_many :atlanta_groups, :through => derived_attribute_histories
|
29
|
+
has_many :atlanta_operators, :through => derived_attribute_histories
|
30
|
+
has_many :derived_attributes, :through => derived_attribute_histories
|
31
|
+
has_many :atlanta_groups, :through => entity_validations
|
32
|
+
has_many :atlanta_operators, :through => entity_validations
|
33
|
+
has_many :attribute_types, :through => entity_validation_lists
|
34
|
+
has_many :variable_defns, :through => entity_validation_variables
|
35
|
+
has_many :atlanta_groups, :through => invoice_format_histories
|
36
|
+
has_many :atlanta_operators, :through => invoice_format_histories
|
37
|
+
has_many :templates, :through => invoice_format_histories
|
38
|
+
has_many :invoice_formats, :through => invoice_format_histories
|
39
|
+
has_many :atlanta_groups, :through => payment_types
|
40
|
+
has_many :payment_types, :through => payment_types
|
41
|
+
has_many :currencies, :through => payment_types
|
42
|
+
has_many :atlanta_operators, :through => payment_types
|
43
|
+
has_many :atlanta_groups, :through => person_types
|
44
|
+
has_many :icons, :through => person_types
|
45
|
+
has_many :address_formats, :through => person_types
|
46
|
+
has_many :atlanta_operators, :through => person_types
|
47
|
+
has_many :person_types, :through => person_types
|
48
|
+
has_many :atlanta_groups, :through => schedule_task_types
|
49
|
+
has_many :error_messages, :through => schedule_task_types
|
50
|
+
has_many :atlanta_operators, :through => schedule_task_types
|
51
|
+
has_many :schedule_task_types, :through => schedule_task_types
|
52
|
+
validates_presence_of :entity_validation_id
|
53
|
+
validates_numericality_of :entity_validation_id, :allow_nil => false, :only_integer => true
|
54
|
+
validates_presence_of :entity_validation_name
|
55
|
+
validates_length_of :entity_validation_name, :allow_nil => false, :maximum => 30
|
56
|
+
validates_presence_of :description
|
57
|
+
validates_length_of :description, :allow_nil => false, :maximum => 255
|
58
|
+
validates_presence_of :last_modified
|
59
|
+
validates_presence_of :atlanta_operator_id
|
60
|
+
validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
|
61
|
+
validates_presence_of :atlanta_group_id
|
62
|
+
validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
|
63
|
+
validates_presence_of :validation_table_name
|
64
|
+
validates_length_of :validation_table_name, :allow_nil => false, :maximum => 30
|
65
|
+
validates_length_of :parent_table_name, :allow_nil => true, :maximum => 30
|
66
|
+
validates_numericality_of :row_validation_expr_list_id, :allow_nil => true, :only_integer => true
|
67
|
+
validates_numericality_of :pre_commit_row_expr_list_id, :allow_nil => true, :only_integer => true
|
68
|
+
validates_length_of :post_commit_expr, :allow_nil => true, :maximum => 2000
|
69
|
+
validates_length_of :version_str, :allow_nil => true, :maximum => 255
|
70
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class EntityValidationList < ActiveRecord::Base
|
2
|
+
belongs_to :entity_validation, :class_name => 'EntityValidation', :foreign_key => :entity_validation_id
|
3
|
+
belongs_to :attribute_type, :class_name => 'AttributeType', :foreign_key => :attribute_type_id
|
4
|
+
validates_presence_of :entity_validation_id
|
5
|
+
validates_numericality_of :entity_validation_id, :allow_nil => false, :only_integer => true
|
6
|
+
validates_presence_of :seqnr
|
7
|
+
validates_numericality_of :seqnr, :allow_nil => false, :only_integer => true
|
8
|
+
validates_presence_of :last_modified
|
9
|
+
validates_presence_of :column_name
|
10
|
+
validates_length_of :column_name, :allow_nil => false, :maximum => 30
|
11
|
+
validates_presence_of :attribute_type_id
|
12
|
+
validates_numericality_of :attribute_type_id, :allow_nil => false, :only_integer => true
|
13
|
+
validates_length_of :default_expr, :allow_nil => true, :maximum => 255
|
14
|
+
validates_numericality_of :control_next_ind_code, :allow_nil => true, :only_integer => true
|
15
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class EntityValidationVariable < ActiveRecord::Base
|
2
|
+
belongs_to :entity_validation, :class_name => 'EntityValidation', :foreign_key => :entity_validation_id
|
3
|
+
belongs_to :variable_defn, :class_name => 'VariableDefn', :foreign_key => :variable_defn_id
|
4
|
+
validates_presence_of :entity_validation_id
|
5
|
+
validates_numericality_of :entity_validation_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
|
@@ -0,0 +1,28 @@
|
|
1
|
+
class Equipment < ActiveRecord::Base
|
2
|
+
belongs_to :equipment, :class_name => 'Equipment', :foreign_key => :equipment_id
|
3
|
+
has_many :equipment, :class_name => 'Equipment', :foreign_key => :equipment_id
|
4
|
+
has_many :equipment_histories, :class_name => 'EquipmentHistory', :foreign_key => :equipment_id
|
5
|
+
has_many :product_instance_equips, :class_name => 'ProductInstanceEquip', :foreign_key => :equipment_id
|
6
|
+
has_many :rgp_normalised_events, :class_name => 'RgpNormalisedEvent', :foreign_key => :equipment_id
|
7
|
+
has_many :rpsi_ts, :class_name => 'RpsiT', :foreign_key => :equipment_id
|
8
|
+
has_many :atlanta_groups, :through => equipment_histories
|
9
|
+
has_many :atlanta_operators, :through => equipment_histories
|
10
|
+
has_many :equipment_types, :through => equipment_histories
|
11
|
+
has_many :product_service_types, :through => product_instance_equips
|
12
|
+
has_many :product_instances, :through => product_instance_equips
|
13
|
+
has_many :normalised_event_types, :through => rgp_normalised_events
|
14
|
+
has_many :customer_nodes, :through => rgp_normalised_events
|
15
|
+
has_many :currencies, :through => rgp_normalised_events
|
16
|
+
has_many :fac_group_instances, :through => rgp_normalised_events
|
17
|
+
has_many :tariffs, :through => rgp_normalised_events
|
18
|
+
has_many :services, :through => rgp_normalised_events
|
19
|
+
has_many :bill_runs, :through => rgp_normalised_events
|
20
|
+
has_many :rgp_files, :through => rgp_normalised_events
|
21
|
+
has_many :product_instances, :through => rgp_normalised_events
|
22
|
+
has_many :customer_nodes, :through => rpsi_ts
|
23
|
+
has_many :task_queues, :through => rpsi_ts
|
24
|
+
has_many :services, :through => rpsi_ts
|
25
|
+
has_many :product_instances, :through => rpsi_ts
|
26
|
+
validates_presence_of :equipment_id
|
27
|
+
validates_numericality_of :equipment_id, :allow_nil => false, :only_integer => true
|
28
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
class EquipmentHistory < ActiveRecord::Base
|
2
|
+
belongs_to :equipment, :class_name => 'Equipment', :foreign_key => :equipment_id
|
3
|
+
belongs_to :equipment_type, :class_name => 'EquipmentType', :foreign_key => :equipment_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
|
+
validates_presence_of :equipment_id
|
7
|
+
validates_numericality_of :equipment_id, :allow_nil => false, :only_integer => true
|
8
|
+
validates_presence_of :last_modified
|
9
|
+
validates_presence_of :effective_start_date
|
10
|
+
validates_presence_of :effective_end_date
|
11
|
+
validates_presence_of :equipment_type_id
|
12
|
+
validates_numericality_of :equipment_type_id, :allow_nil => false, :only_integer => true
|
13
|
+
validates_presence_of :equipment_status_code
|
14
|
+
validates_numericality_of :equipment_status_code, :allow_nil => false, :only_integer => true
|
15
|
+
validates_numericality_of :idle_ind_code, :allow_nil => true, :only_integer => true
|
16
|
+
validates_numericality_of :reason_code, :allow_nil => true, :only_integer => true
|
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_length_of :equipment_subtype, :allow_nil => true, :maximum => 40
|
22
|
+
validates_numericality_of :equipment_origin_code, :allow_nil => true, :only_integer => true
|
23
|
+
validates_length_of :make, :allow_nil => true, :maximum => 40
|
24
|
+
validates_length_of :model, :allow_nil => true, :maximum => 40
|
25
|
+
validates_presence_of :nr_items
|
26
|
+
validates_numericality_of :nr_items, :allow_nil => false, :only_integer => true
|
27
|
+
validates_presence_of :serial_number
|
28
|
+
validates_length_of :serial_number, :allow_nil => false, :maximum => 64
|
29
|
+
validates_length_of :decoded_serial_number, :allow_nil => true, :maximum => 64
|
30
|
+
validates_length_of :to_serial_number, :allow_nil => true, :maximum => 64
|
31
|
+
validates_length_of :decoded_to_serial_number, :allow_nil => true, :maximum => 64
|
32
|
+
validates_length_of :network_address, :allow_nil => true, :maximum => 64
|
33
|
+
validates_length_of :decoded_network_address, :allow_nil => true, :maximum => 64
|
34
|
+
validates_length_of :to_network_address, :allow_nil => true, :maximum => 64
|
35
|
+
validates_length_of :decoded_to_network_address, :allow_nil => true, :maximum => 64
|
36
|
+
validates_numericality_of :reserved_customer_node_id, :allow_nil => true, :only_integer => true
|
37
|
+
validates_numericality_of :address_id, :allow_nil => true, :only_integer => true
|
38
|
+
validates_numericality_of :warranty, :allow_nil => true, :only_integer => true
|
39
|
+
validates_numericality_of :warranty_unit_code, :allow_nil => true, :only_integer => true
|
40
|
+
validates_length_of :comments, :allow_nil => true, :maximum => 255
|
41
|
+
validates_length_of :pin, :allow_nil => true, :maximum => 20
|
42
|
+
validates_length_of :puk, :allow_nil => true, :maximum => 20
|
43
|
+
validates_length_of :pin2, :allow_nil => true, :maximum => 20
|
44
|
+
validates_length_of :puk2, :allow_nil => true, :maximum => 20
|
45
|
+
validates_length_of :subscription_key, :allow_nil => true, :maximum => 32
|
46
|
+
validates_length_of :adm_key, :allow_nil => true, :maximum => 20
|
47
|
+
validates_numericality_of :sender_person_id, :allow_nil => true, :only_integer => true
|
48
|
+
validates_numericality_of :recipient_person_id, :allow_nil => true, :only_integer => true
|
49
|
+
validates_length_of :transit_organisation, :allow_nil => true, :maximum => 80
|
50
|
+
validates_length_of :transit_contact_number, :allow_nil => true, :maximum => 30
|
51
|
+
validates_length_of :transit_reference_number, :allow_nil => true, :maximum => 30
|
52
|
+
validates_length_of :general_1, :allow_nil => true, :maximum => 255
|
53
|
+
validates_length_of :general_2, :allow_nil => true, :maximum => 255
|
54
|
+
validates_length_of :general_3, :allow_nil => true, :maximum => 255
|
55
|
+
validates_length_of :general_4, :allow_nil => true, :maximum => 255
|
56
|
+
validates_length_of :general_5, :allow_nil => true, :maximum => 255
|
57
|
+
validates_length_of :general_6, :allow_nil => true, :maximum => 255
|
58
|
+
validates_length_of :general_7, :allow_nil => true, :maximum => 255
|
59
|
+
validates_length_of :general_8, :allow_nil => true, :maximum => 255
|
60
|
+
validates_length_of :general_9, :allow_nil => true, :maximum => 255
|
61
|
+
validates_length_of :general_10, :allow_nil => true, :maximum => 255
|
62
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
class EquipmentType < ActiveRecord::Base
|
2
|
+
belongs_to :equipment_type, :class_name => 'EquipmentType', :foreign_key => :equipment_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 :icon, :class_name => 'Icon', :foreign_key => :icon_id
|
6
|
+
belongs_to :address_format, :class_name => 'AddressFormat', :foreign_key => :address_format_id
|
7
|
+
has_many :equipment_histories, :class_name => 'EquipmentHistory', :foreign_key => :equipment_type_id
|
8
|
+
has_many :equipment_types, :class_name => 'EquipmentType', :foreign_key => :equipment_type_id
|
9
|
+
has_many :equipment_type_variables, :class_name => 'EquipmentTypeVariable', :foreign_key => :equipment_type_id
|
10
|
+
has_many :product_service_type_equips, :class_name => 'ProductServiceTypeEquip', :foreign_key => :equipment_type_id
|
11
|
+
has_many :service_type_equip_types, :class_name => 'ServiceTypeEquipType', :foreign_key => :equipment_type_id
|
12
|
+
has_many :atlanta_groups, :through => equipment_histories
|
13
|
+
has_many :atlanta_operators, :through => equipment_histories
|
14
|
+
has_many :equipment, :through => equipment_histories
|
15
|
+
has_many :atlanta_groups, :through => equipment_types
|
16
|
+
has_many :icons, :through => equipment_types
|
17
|
+
has_many :address_formats, :through => equipment_types
|
18
|
+
has_many :atlanta_operators, :through => equipment_types
|
19
|
+
has_many :variable_defns, :through => equipment_type_variables
|
20
|
+
has_many :product_service_types, :through => product_service_type_equips
|
21
|
+
has_many :service_types, :through => service_type_equip_types
|
22
|
+
validates_presence_of :equipment_type_id
|
23
|
+
validates_numericality_of :equipment_type_id, :allow_nil => false, :only_integer => true
|
24
|
+
validates_presence_of :last_modified
|
25
|
+
validates_presence_of :equipment_type_name
|
26
|
+
validates_length_of :equipment_type_name, :allow_nil => false, :maximum => 60
|
27
|
+
validates_presence_of :description
|
28
|
+
validates_length_of :description, :allow_nil => false, :maximum => 255
|
29
|
+
validates_presence_of :atlanta_operator_id
|
30
|
+
validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
|
31
|
+
validates_presence_of :atlanta_group_id
|
32
|
+
validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
|
33
|
+
validates_presence_of :icon_id
|
34
|
+
validates_numericality_of :icon_id, :allow_nil => false, :only_integer => true
|
35
|
+
validates_presence_of :equipment_form_code
|
36
|
+
validates_numericality_of :equipment_form_code, :allow_nil => false, :only_integer => true
|
37
|
+
validates_presence_of :status_reference_type_id
|
38
|
+
validates_numericality_of :status_reference_type_id, :allow_nil => false, :only_integer => true
|
39
|
+
validates_length_of :serial_number_encode_expr, :allow_nil => true, :maximum => 255
|
40
|
+
validates_length_of :serial_number_decode_expr, :allow_nil => true, :maximum => 255
|
41
|
+
validates_presence_of :network_address_ind_code
|
42
|
+
validates_numericality_of :network_address_ind_code, :allow_nil => false, :only_integer => true
|
43
|
+
validates_length_of :network_address_encode_expr, :allow_nil => true, :maximum => 255
|
44
|
+
validates_length_of :network_address_decode_expr, :allow_nil => true, :maximum => 255
|
45
|
+
validates_numericality_of :default_warranty, :allow_nil => true, :only_integer => true
|
46
|
+
validates_numericality_of :default_warranty_unit_code, :allow_nil => true, :only_integer => true
|
47
|
+
validates_numericality_of :quarantine_period, :allow_nil => true, :only_integer => true
|
48
|
+
validates_numericality_of :quarantine_period_unit_code, :allow_nil => true, :only_integer => true
|
49
|
+
validates_numericality_of :quarantine_status_code, :allow_nil => true, :only_integer => true
|
50
|
+
validates_numericality_of :address_format_id, :allow_nil => true, :only_integer => true
|
51
|
+
validates_numericality_of :equipment_entity_validation_id, :allow_nil => true, :only_integer => true
|
52
|
+
validates_numericality_of :customer_entity_validation_id, :allow_nil => true, :only_integer => true
|
53
|
+
validates_numericality_of :search_entity_validation_id, :allow_nil => true, :only_integer => true
|
54
|
+
validates_numericality_of :realloc_entity_validation_id, :allow_nil => true, :only_integer => true
|
55
|
+
validates_numericality_of :split_entity_validation_id, :allow_nil => true, :only_integer => true
|
56
|
+
validates_length_of :version_str, :allow_nil => true, :maximum => 255
|
57
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class EquipmentTypeVariable < ActiveRecord::Base
|
2
|
+
belongs_to :equipment_type, :class_name => 'EquipmentType', :foreign_key => :equipment_type_id
|
3
|
+
belongs_to :variable_defn, :class_name => 'VariableDefn', :foreign_key => :variable_defn_id
|
4
|
+
validates_presence_of :equipment_type_id
|
5
|
+
validates_numericality_of :equipment_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
|
@@ -0,0 +1,18 @@
|
|
1
|
+
class ErrorGroup < ActiveRecord::Base
|
2
|
+
belongs_to :atlanta_operator, :class_name => 'AtlantaOperator', :foreign_key => :atlanta_operator_id
|
3
|
+
belongs_to :atlanta_group, :class_name => 'AtlantaGroup', :foreign_key => :atlanta_group_id
|
4
|
+
validates_presence_of :module_name
|
5
|
+
validates_length_of :module_name, :allow_nil => false, :maximum => 20
|
6
|
+
validates_presence_of :description
|
7
|
+
validates_length_of :description, :allow_nil => false, :maximum => 255
|
8
|
+
validates_presence_of :start_error_message_id
|
9
|
+
validates_numericality_of :start_error_message_id, :allow_nil => false, :only_integer => true
|
10
|
+
validates_presence_of :end_error_message_id
|
11
|
+
validates_numericality_of :end_error_message_id, :allow_nil => false, :only_integer => true
|
12
|
+
validates_presence_of :last_modified
|
13
|
+
validates_presence_of :atlanta_operator_id
|
14
|
+
validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
|
15
|
+
validates_presence_of :atlanta_group_id
|
16
|
+
validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
|
17
|
+
validates_length_of :version_str, :allow_nil => true, :maximum => 255
|
18
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
class ErrorMessage < ActiveRecord::Base
|
2
|
+
belongs_to :error_message, :class_name => 'ErrorMessage', :foreign_key => :error_message_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 :atai_error_names, :class_name => 'AtaiErrorName', :foreign_key => :error_message_id
|
6
|
+
has_many :bill_runs, :class_name => 'BillRun', :foreign_key => :error_message_id
|
7
|
+
has_many :bill_run_operations, :class_name => 'BillRunOperation', :foreign_key => :error_message_id
|
8
|
+
has_many :customer_node_bill_runs, :class_name => 'CustomerNodeBillRun', :foreign_key => :error_message_id
|
9
|
+
has_many :entity_remaps, :class_name => 'EntityRemap', :foreign_key => :error_message_id
|
10
|
+
has_many :error_messages, :class_name => 'ErrorMessage', :foreign_key => :error_message_id
|
11
|
+
has_many :expression_list_values, :class_name => 'ExpressionListValue', :foreign_key => :error_message_id
|
12
|
+
has_many :normalised_event_errors, :class_name => 'NormalisedEventError', :foreign_key => :error_message_id
|
13
|
+
has_many :schedule_task_types, :class_name => 'ScheduleTaskType', :foreign_key => :error_message_id
|
14
|
+
has_many :xpsi_ne_batches, :class_name => 'XpsiNeBatch', :foreign_key => :error_message_id
|
15
|
+
has_many :xpsi_tax_errors, :class_name => 'XpsiTaxError', :foreign_key => :error_message_id
|
16
|
+
has_many :atlanta_groups, :through => bill_runs
|
17
|
+
has_many :bill_run_types, :through => bill_runs
|
18
|
+
has_many :atlanta_operators, :through => bill_runs
|
19
|
+
has_many :bill_runs, :through => bill_runs
|
20
|
+
has_many :task_queues, :through => bill_run_operations
|
21
|
+
has_many :atlanta_operators, :through => bill_run_operations
|
22
|
+
has_many :bill_runs, :through => bill_run_operations
|
23
|
+
has_many :bill_run_operations, :through => bill_run_operations
|
24
|
+
has_many :customer_nodes, :through => customer_node_bill_runs
|
25
|
+
has_many :bill_run_operations, :through => customer_node_bill_runs
|
26
|
+
has_many :customer_nodes, :through => entity_remaps
|
27
|
+
has_many :task_queues, :through => entity_remaps
|
28
|
+
has_many :atlanta_groups, :through => error_messages
|
29
|
+
has_many :atlanta_operators, :through => error_messages
|
30
|
+
has_many :expression_list_values, :through => expression_list_values
|
31
|
+
has_many :expression_lists, :through => expression_list_values
|
32
|
+
has_many :normalised_event_types, :through => normalised_event_errors
|
33
|
+
has_many :currencies, :through => normalised_event_errors
|
34
|
+
has_many :normalised_event_files, :through => normalised_event_errors
|
35
|
+
has_many :reprocessed_files, :through => normalised_event_errors
|
36
|
+
has_many :bill_runs, :through => normalised_event_errors
|
37
|
+
has_many :normalised_events, :through => normalised_event_errors
|
38
|
+
has_many :atlanta_groups, :through => schedule_task_types
|
39
|
+
has_many :atlanta_operators, :through => schedule_task_types
|
40
|
+
has_many :schedule_task_types, :through => schedule_task_types
|
41
|
+
has_many :entity_validations, :through => schedule_task_types
|
42
|
+
has_many :xpsi_ne_batches, :through => xpsi_ne_batches
|
43
|
+
has_many :customer_nodes, :through => xpsi_tax_errors
|
44
|
+
has_many :xpsi_tax_errors, :through => xpsi_tax_errors
|
45
|
+
has_many :adjustments, :through => xpsi_tax_errors
|
46
|
+
has_many :services, :through => xpsi_tax_errors
|
47
|
+
has_many :normalised_events, :through => xpsi_tax_errors
|
48
|
+
validates_presence_of :error_message_id
|
49
|
+
validates_numericality_of :error_message_id, :allow_nil => false, :only_integer => true
|
50
|
+
validates_presence_of :last_modified
|
51
|
+
validates_presence_of :atlanta_operator_id
|
52
|
+
validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
|
53
|
+
validates_presence_of :atlanta_group_id
|
54
|
+
validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
|
55
|
+
validates_numericality_of :severity_level_code, :allow_nil => true, :only_integer => true
|
56
|
+
validates_presence_of :error_code
|
57
|
+
validates_length_of :error_code, :allow_nil => false, :maximum => 10
|
58
|
+
validates_presence_of :error_message
|
59
|
+
validates_length_of :error_message, :allow_nil => false, :maximum => 4000
|
60
|
+
validates_presence_of :error_cause
|
61
|
+
validates_length_of :error_cause, :allow_nil => false, :maximum => 4000
|
62
|
+
validates_presence_of :error_action
|
63
|
+
validates_length_of :error_action, :allow_nil => false, :maximum => 4000
|
64
|
+
validates_length_of :version_str, :allow_nil => true, :maximum => 255
|
65
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class EvsAddressEquiv < ActiveRecord::Base
|
2
|
+
belongs_to :evs_address_equiv, :class_name => 'EvsAddressEquiv', :foreign_key => :evs_address_equiv_id
|
3
|
+
has_many :evs_address_equivs, :class_name => 'EvsAddressEquiv', :foreign_key => :evs_address_equiv_id
|
4
|
+
validates_presence_of :evs_address_equiv_id
|
5
|
+
validates_numericality_of :evs_address_equiv_id, :allow_nil => false, :only_integer => true
|
6
|
+
validates_presence_of :prefix
|
7
|
+
validates_length_of :prefix, :allow_nil => false, :maximum => 10
|
8
|
+
validates_presence_of :parent_view
|
9
|
+
validates_length_of :parent_view, :allow_nil => false, :maximum => 40
|
10
|
+
validates_presence_of :offset
|
11
|
+
validates_numericality_of :offset, :allow_nil => false, :only_integer => true
|
12
|
+
validates_presence_of :last_modified
|
13
|
+
validates_presence_of :operator_id
|
14
|
+
validates_numericality_of :operator_id, :allow_nil => false, :only_integer => true
|
15
|
+
validates_presence_of :group_id
|
16
|
+
validates_numericality_of :group_id, :allow_nil => false, :only_integer => true
|
17
|
+
end
|