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,32 @@
|
|
1
|
+
class AtlantaHelpEntry < ActiveRecord::Base
|
2
|
+
belongs_to :atlanta_help_entry, :class_name => 'AtlantaHelpEntry', :foreign_key => :atlanta_help_entry_id
|
3
|
+
belongs_to :atlanta_operator, :class_name => 'AtlantaOperator', :foreign_key => :atlanta_operator_id
|
4
|
+
belongs_to :atlanta_group, :class_name => 'AtlantaGroup', :foreign_key => :atlanta_group_id
|
5
|
+
has_many :atlanta_form_fields, :class_name => 'AtlantaFormField', :foreign_key => :atlanta_help_entry_id
|
6
|
+
has_many :atlanta_help_entries, :class_name => 'AtlantaHelpEntry', :foreign_key => :atlanta_help_entry_id
|
7
|
+
has_many :attribute_types, :class_name => 'AttributeType', :foreign_key => :atlanta_help_entry_id
|
8
|
+
has_many :atlanta_forms, :through => atlanta_form_fields
|
9
|
+
has_many :atlanta_groups, :through => atlanta_help_entries
|
10
|
+
has_many :atlanta_operators, :through => atlanta_help_entries
|
11
|
+
has_many :atlanta_groups, :through => attribute_types
|
12
|
+
has_many :attribute_types, :through => attribute_types
|
13
|
+
has_many :reference_types, :through => attribute_types
|
14
|
+
has_many :atlanta_operators, :through => attribute_types
|
15
|
+
validates_presence_of :atlanta_help_entry_id
|
16
|
+
validates_numericality_of :atlanta_help_entry_id, :allow_nil => false, :only_integer => true
|
17
|
+
validates_presence_of :help_entry_name
|
18
|
+
validates_length_of :help_entry_name, :allow_nil => false, :maximum => 40
|
19
|
+
validates_presence_of :last_modified
|
20
|
+
validates_presence_of :atlanta_operator_id
|
21
|
+
validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
|
22
|
+
validates_presence_of :atlanta_group_id
|
23
|
+
validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
|
24
|
+
validates_presence_of :title
|
25
|
+
validates_length_of :title, :allow_nil => false, :maximum => 255
|
26
|
+
validates_presence_of :description
|
27
|
+
validates_length_of :description, :allow_nil => false, :maximum => 4000
|
28
|
+
validates_length_of :example, :allow_nil => true, :maximum => 4000
|
29
|
+
validates_length_of :notes, :allow_nil => true, :maximum => 4000
|
30
|
+
validates_length_of :business_rules, :allow_nil => true, :maximum => 4000
|
31
|
+
validates_length_of :version_str, :allow_nil => true, :maximum => 255
|
32
|
+
end
|
@@ -0,0 +1,356 @@
|
|
1
|
+
class AtlantaOperator < 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
|
+
belongs_to :atlanta_profile, :class_name => 'AtlantaProfile', :foreign_key => :atlanta_profile_id
|
5
|
+
belongs_to :person, :class_name => 'Person', :foreign_key => :person_id
|
6
|
+
has_many :account_types, :class_name => 'AccountType', :foreign_key => :atlanta_operator_id
|
7
|
+
has_many :address_formats, :class_name => 'AddressFormat', :foreign_key => :atlanta_operator_id
|
8
|
+
has_many :adjustments, :class_name => 'Adjustment', :foreign_key => :atlanta_operator_id
|
9
|
+
has_many :adjustment_batches, :class_name => 'AdjustmentBatch', :foreign_key => :atlanta_operator_id
|
10
|
+
has_many :adjustment_types, :class_name => 'AdjustmentType', :foreign_key => :atlanta_operator_id
|
11
|
+
has_many :archive_types, :class_name => 'ArchiveType', :foreign_key => :atlanta_operator_id
|
12
|
+
has_many :atlanta_forms, :class_name => 'AtlantaForm', :foreign_key => :atlanta_operator_id
|
13
|
+
has_many :atlanta_groups, :class_name => 'AtlantaGroup', :foreign_key => :atlanta_operator_id
|
14
|
+
has_many :atlanta_help_entries, :class_name => 'AtlantaHelpEntry', :foreign_key => :atlanta_operator_id
|
15
|
+
has_many :atlanta_operators, :class_name => 'AtlantaOperator', :foreign_key => :atlanta_operator_id
|
16
|
+
has_many :atlanta_profiles, :class_name => 'AtlantaProfile', :foreign_key => :atlanta_operator_id
|
17
|
+
has_many :atlanta_roles, :class_name => 'AtlantaRole', :foreign_key => :atlanta_operator_id
|
18
|
+
has_many :atlanta_table_partitions, :class_name => 'AtlantaTablePartition', :foreign_key => :atlanta_operator_id
|
19
|
+
has_many :attribute_types, :class_name => 'AttributeType', :foreign_key => :atlanta_operator_id
|
20
|
+
has_many :bill_runs, :class_name => 'BillRun', :foreign_key => :atlanta_operator_id
|
21
|
+
has_many :bill_run_operations, :class_name => 'BillRunOperation', :foreign_key => :atlanta_operator_id
|
22
|
+
has_many :bill_run_types, :class_name => 'BillRunType', :foreign_key => :atlanta_operator_id
|
23
|
+
has_many :charge_categories, :class_name => 'ChargeCategory', :foreign_key => :atlanta_operator_id
|
24
|
+
has_many :charge_output_defn_histories, :class_name => 'ChargeOutputDefnHistory', :foreign_key => :atlanta_operator_id
|
25
|
+
has_many :configuration_items, :class_name => 'ConfigurationItem', :foreign_key => :atlanta_operator_id
|
26
|
+
has_many :configuration_item_types, :class_name => 'ConfigurationItemType', :foreign_key => :atlanta_operator_id
|
27
|
+
has_many :contract_histories, :class_name => 'ContractHistory', :foreign_key => :atlanta_operator_id
|
28
|
+
has_many :contract_types, :class_name => 'ContractType', :foreign_key => :atlanta_operator_id
|
29
|
+
has_many :conversion_rates, :class_name => 'ConversionRate', :foreign_key => :atlanta_operator_id
|
30
|
+
has_many :currency_histories, :class_name => 'CurrencyHistory', :foreign_key => :atlanta_operator_id
|
31
|
+
has_many :customer_node_histories, :class_name => 'CustomerNodeHistory', :foreign_key => :atlanta_operator_id
|
32
|
+
has_many :customer_node_types, :class_name => 'CustomerNodeType', :foreign_key => :atlanta_operator_id
|
33
|
+
has_many :customer_queries, :class_name => 'CustomerQuery', :foreign_key => :atlanta_operator_id
|
34
|
+
has_many :customer_query_progresses, :class_name => 'CustomerQueryProgress', :foreign_key => :atlanta_operator_id
|
35
|
+
has_many :customer_query_types, :class_name => 'CustomerQueryType', :foreign_key => :atlanta_operator_id
|
36
|
+
has_many :delete_cascade_groups, :class_name => 'DeleteCascadeGroup', :foreign_key => :atlanta_operator_id
|
37
|
+
has_many :derived_attribute_histories, :class_name => 'DerivedAttributeHistory', :foreign_key => :atlanta_operator_id
|
38
|
+
has_many :dil_histories, :class_name => 'DilHistory', :foreign_key => :atlanta_operator_id
|
39
|
+
has_many :entity_validations, :class_name => 'EntityValidation', :foreign_key => :atlanta_operator_id
|
40
|
+
has_many :equipment_histories, :class_name => 'EquipmentHistory', :foreign_key => :atlanta_operator_id
|
41
|
+
has_many :equipment_types, :class_name => 'EquipmentType', :foreign_key => :atlanta_operator_id
|
42
|
+
has_many :error_groups, :class_name => 'ErrorGroup', :foreign_key => :atlanta_operator_id
|
43
|
+
has_many :error_messages, :class_name => 'ErrorMessage', :foreign_key => :atlanta_operator_id
|
44
|
+
has_many :facility_group_histories, :class_name => 'FacilityGroupHistory', :foreign_key => :atlanta_operator_id
|
45
|
+
has_many :function_defn_histories, :class_name => 'FunctionDefnHistory', :foreign_key => :atlanta_operator_id
|
46
|
+
has_many :function_roles, :class_name => 'FunctionRole', :foreign_key => :atlanta_operator_id
|
47
|
+
has_many :gl_code_histories, :class_name => 'GlCodeHistory', :foreign_key => :atlanta_operator_id
|
48
|
+
has_many :icons, :class_name => 'Icon', :foreign_key => :atlanta_operator_id
|
49
|
+
has_many :invoice_format_histories, :class_name => 'InvoiceFormatHistory', :foreign_key => :atlanta_operator_id
|
50
|
+
has_many :invoice_message_histories, :class_name => 'InvoiceMessageHistory', :foreign_key => :atlanta_operator_id
|
51
|
+
has_many :invoice_type_histories, :class_name => 'InvoiceTypeHistory', :foreign_key => :atlanta_operator_id
|
52
|
+
has_many :isp_email_addresses, :class_name => 'IspEmailAddress', :foreign_key => :atlanta_operator_id
|
53
|
+
has_many :normalised_event_files, :class_name => 'NormalisedEventFile', :foreign_key => :atlanta_operator_id
|
54
|
+
has_many :normalised_event_ft_hists, :class_name => 'NormalisedEventFtHist', :foreign_key => :atlanta_operator_id
|
55
|
+
has_many :normalised_event_types, :class_name => 'NormalisedEventType', :foreign_key => :atlanta_operator_id
|
56
|
+
has_many :output_devices, :class_name => 'OutputDevice', :foreign_key => :atlanta_operator_id
|
57
|
+
has_many :output_methods, :class_name => 'OutputMethod', :foreign_key => :atlanta_operator_id
|
58
|
+
has_many :output_method_types, :class_name => 'OutputMethodType', :foreign_key => :atlanta_operator_id
|
59
|
+
has_many :payments, :class_name => 'Payment', :foreign_key => :atlanta_operator_id
|
60
|
+
has_many :payment_batches, :class_name => 'PaymentBatch', :foreign_key => :atlanta_operator_id
|
61
|
+
has_many :payment_types, :class_name => 'PaymentType', :foreign_key => :atlanta_operator_id
|
62
|
+
has_many :person_histories, :class_name => 'PersonHistory', :foreign_key => :atlanta_operator_id
|
63
|
+
has_many :person_types, :class_name => 'PersonType', :foreign_key => :atlanta_operator_id
|
64
|
+
has_many :product_group_histories, :class_name => 'ProductGroupHistory', :foreign_key => :atlanta_operator_id
|
65
|
+
has_many :product_histories, :class_name => 'ProductHistory', :foreign_key => :atlanta_operator_id
|
66
|
+
has_many :product_instance_histories, :class_name => 'ProductInstanceHistory', :foreign_key => :atlanta_operator_id
|
67
|
+
has_many :receivable_type_histories, :class_name => 'ReceivableTypeHistory', :foreign_key => :atlanta_operator_id
|
68
|
+
has_many :reference_types, :class_name => 'ReferenceType', :foreign_key => :atlanta_operator_id
|
69
|
+
has_many :reprocessed_files, :class_name => 'ReprocessedFile', :foreign_key => :atlanta_operator_id
|
70
|
+
has_many :schedules, :class_name => 'Schedule', :foreign_key => :atlanta_operator_id
|
71
|
+
has_many :schedule_task_types, :class_name => 'ScheduleTaskType', :foreign_key => :atlanta_operator_id
|
72
|
+
has_many :service_histories, :class_name => 'ServiceHistory', :foreign_key => :atlanta_operator_id
|
73
|
+
has_many :service_types, :class_name => 'ServiceType', :foreign_key => :atlanta_operator_id
|
74
|
+
has_many :subtotal_histories, :class_name => 'SubtotalHistory', :foreign_key => :atlanta_operator_id
|
75
|
+
has_many :summary_of_change_views, :class_name => 'SummaryOfChangeView', :foreign_key => :atlanta_operator_id
|
76
|
+
has_many :tariff_histories, :class_name => 'TariffHistory', :foreign_key => :atlanta_operator_id
|
77
|
+
has_many :task_queues, :class_name => 'TaskQueue', :foreign_key => :atlanta_operator_id
|
78
|
+
has_many :template_histories, :class_name => 'TemplateHistory', :foreign_key => :atlanta_operator_id
|
79
|
+
has_many :variable_defn_histories, :class_name => 'VariableDefnHistory', :foreign_key => :atlanta_operator_id
|
80
|
+
has_many :work_forces, :class_name => 'WorkForce', :foreign_key => :atlanta_operator_id
|
81
|
+
has_many :atlanta_groups, :through => account_types
|
82
|
+
has_many :currencies, :through => account_types
|
83
|
+
has_many :invoice_types, :through => account_types
|
84
|
+
has_many :account_types, :through => account_types
|
85
|
+
has_many :atlanta_groups, :through => address_formats
|
86
|
+
has_many :address_formats, :through => address_formats
|
87
|
+
has_many :entity_validations, :through => address_formats
|
88
|
+
has_many :customer_queries, :through => adjustments
|
89
|
+
has_many :currencies, :through => adjustments
|
90
|
+
has_many :invoices, :through => adjustments
|
91
|
+
has_many :adjustments, :through => adjustments
|
92
|
+
has_many :adjustment_types, :through => adjustments
|
93
|
+
has_many :adjustment_batches, :through => adjustments
|
94
|
+
has_many :currencies, :through => adjustment_batches
|
95
|
+
has_many :adjustment_types, :through => adjustment_batches
|
96
|
+
has_many :adjustment_batches, :through => adjustment_batches
|
97
|
+
has_many :atlanta_groups, :through => adjustment_types
|
98
|
+
has_many :currencies, :through => adjustment_types
|
99
|
+
has_many :adjustment_types, :through => adjustment_types
|
100
|
+
has_many :entity_validations, :through => adjustment_types
|
101
|
+
has_many :atlanta_groups, :through => archive_types
|
102
|
+
has_many :archive_types, :through => archive_types
|
103
|
+
has_many :atlanta_groups, :through => atlanta_forms
|
104
|
+
has_many :atlanta_forms, :through => atlanta_forms
|
105
|
+
has_many :atlanta_groups, :through => atlanta_groups
|
106
|
+
has_many :atlanta_groups, :through => atlanta_help_entries
|
107
|
+
has_many :atlanta_help_entries, :through => atlanta_help_entries
|
108
|
+
has_many :atlanta_groups, :through => atlanta_operators
|
109
|
+
has_many :atlanta_profiles, :through => atlanta_operators
|
110
|
+
has_many :people, :through => atlanta_operators
|
111
|
+
has_many :atlanta_groups, :through => atlanta_profiles
|
112
|
+
has_many :atlanta_profiles, :through => atlanta_profiles
|
113
|
+
has_many :atlanta_groups, :through => atlanta_roles
|
114
|
+
has_many :atlanta_roles, :through => atlanta_roles
|
115
|
+
has_many :atlanta_groups, :through => atlanta_table_partitions
|
116
|
+
has_many :task_queues, :through => atlanta_table_partitions
|
117
|
+
has_many :atlanta_table_partitions, :through => atlanta_table_partitions
|
118
|
+
has_many :schedules, :through => atlanta_table_partitions
|
119
|
+
has_many :atlanta_groups, :through => attribute_types
|
120
|
+
has_many :attribute_types, :through => attribute_types
|
121
|
+
has_many :reference_types, :through => attribute_types
|
122
|
+
has_many :atlanta_help_entries, :through => attribute_types
|
123
|
+
has_many :atlanta_groups, :through => bill_runs
|
124
|
+
has_many :bill_run_types, :through => bill_runs
|
125
|
+
has_many :error_messages, :through => bill_runs
|
126
|
+
has_many :bill_runs, :through => bill_runs
|
127
|
+
has_many :error_messages, :through => bill_run_operations
|
128
|
+
has_many :task_queues, :through => bill_run_operations
|
129
|
+
has_many :bill_runs, :through => bill_run_operations
|
130
|
+
has_many :bill_run_operations, :through => bill_run_operations
|
131
|
+
has_many :atlanta_groups, :through => bill_run_types
|
132
|
+
has_many :currencies, :through => bill_run_types
|
133
|
+
has_many :bill_run_types, :through => bill_run_types
|
134
|
+
has_many :atlanta_groups, :through => charge_categories
|
135
|
+
has_many :charge_categories, :through => charge_categories
|
136
|
+
has_many :atlanta_groups, :through => charge_output_defn_histories
|
137
|
+
has_many :charge_output_defns, :through => charge_output_defn_histories
|
138
|
+
has_many :expression_lists, :through => charge_output_defn_histories
|
139
|
+
has_many :atlanta_groups, :through => configuration_items
|
140
|
+
has_many :configuration_item_types, :through => configuration_items
|
141
|
+
has_many :configuration_items, :through => configuration_items
|
142
|
+
has_many :atlanta_groups, :through => configuration_item_types
|
143
|
+
has_many :configuration_item_types, :through => configuration_item_types
|
144
|
+
has_many :atlanta_groups, :through => contract_histories
|
145
|
+
has_many :customer_nodes, :through => contract_histories
|
146
|
+
has_many :contract_types, :through => contract_histories
|
147
|
+
has_many :contracts, :through => contract_histories
|
148
|
+
has_many :people, :through => contract_histories
|
149
|
+
has_many :atlanta_groups, :through => contract_types
|
150
|
+
has_many :icons, :through => contract_types
|
151
|
+
has_many :contract_types, :through => contract_types
|
152
|
+
has_many :entity_validations, :through => contract_types
|
153
|
+
has_many :atlanta_groups, :through => currency_histories
|
154
|
+
has_many :currencies, :through => currency_histories
|
155
|
+
has_many :atlanta_groups, :through => customer_node_histories
|
156
|
+
has_many :customer_nodes, :through => customer_node_histories
|
157
|
+
has_many :currencies, :through => customer_node_histories
|
158
|
+
has_many :customer_node_types, :through => customer_node_histories
|
159
|
+
has_many :schedules, :through => customer_node_histories
|
160
|
+
has_many :gl_codes, :through => customer_node_histories
|
161
|
+
has_many :people, :through => customer_node_histories
|
162
|
+
has_many :atlanta_groups, :through => customer_node_types
|
163
|
+
has_many :icons, :through => customer_node_types
|
164
|
+
has_many :address_formats, :through => customer_node_types
|
165
|
+
has_many :customer_node_types, :through => customer_node_types
|
166
|
+
has_many :invoice_formats, :through => customer_node_types
|
167
|
+
has_many :gl_codes, :through => customer_node_types
|
168
|
+
has_many :atlanta_groups, :through => customer_queries
|
169
|
+
has_many :customer_nodes, :through => customer_queries
|
170
|
+
has_many :customer_query_types, :through => customer_queries
|
171
|
+
has_many :customer_queries, :through => customer_queries
|
172
|
+
has_many :currencies, :through => customer_queries
|
173
|
+
has_many :invoices, :through => customer_queries
|
174
|
+
has_many :accounts, :through => customer_queries
|
175
|
+
has_many :services, :through => customer_queries
|
176
|
+
has_many :contracts, :through => customer_queries
|
177
|
+
has_many :people, :through => customer_queries
|
178
|
+
has_many :customer_queries, :through => customer_query_progresses
|
179
|
+
has_many :work_forces, :through => customer_query_progresses
|
180
|
+
has_many :atlanta_groups, :through => customer_query_types
|
181
|
+
has_many :icons, :through => customer_query_types
|
182
|
+
has_many :customer_query_types, :through => customer_query_types
|
183
|
+
has_many :atlanta_groups, :through => delete_cascade_groups
|
184
|
+
has_many :delete_cascade_groups, :through => delete_cascade_groups
|
185
|
+
has_many :atlanta_groups, :through => derived_attribute_histories
|
186
|
+
has_many :derived_attributes, :through => derived_attribute_histories
|
187
|
+
has_many :entity_validations, :through => derived_attribute_histories
|
188
|
+
has_many :atlanta_groups, :through => dil_histories
|
189
|
+
has_many :dils, :through => dil_histories
|
190
|
+
has_many :atlanta_groups, :through => entity_validations
|
191
|
+
has_many :entity_validations, :through => entity_validations
|
192
|
+
has_many :atlanta_groups, :through => equipment_histories
|
193
|
+
has_many :equipment_types, :through => equipment_histories
|
194
|
+
has_many :equipment, :through => equipment_histories
|
195
|
+
has_many :atlanta_groups, :through => equipment_types
|
196
|
+
has_many :icons, :through => equipment_types
|
197
|
+
has_many :address_formats, :through => equipment_types
|
198
|
+
has_many :equipment_types, :through => equipment_types
|
199
|
+
has_many :atlanta_groups, :through => error_groups
|
200
|
+
has_many :atlanta_groups, :through => error_messages
|
201
|
+
has_many :error_messages, :through => error_messages
|
202
|
+
has_many :atlanta_groups, :through => facility_group_histories
|
203
|
+
has_many :icons, :through => facility_group_histories
|
204
|
+
has_many :facility_groups, :through => facility_group_histories
|
205
|
+
has_many :atlanta_groups, :through => function_defn_histories
|
206
|
+
has_many :function_defns, :through => function_defn_histories
|
207
|
+
has_many :atlanta_groups, :through => function_roles
|
208
|
+
has_many :function_roles, :through => function_roles
|
209
|
+
has_many :atlanta_groups, :through => gl_code_histories
|
210
|
+
has_many :gl_codes, :through => gl_code_histories
|
211
|
+
has_many :atlanta_groups, :through => icons
|
212
|
+
has_many :icons, :through => icons
|
213
|
+
has_many :atlanta_groups, :through => invoice_format_histories
|
214
|
+
has_many :templates, :through => invoice_format_histories
|
215
|
+
has_many :invoice_formats, :through => invoice_format_histories
|
216
|
+
has_many :entity_validations, :through => invoice_format_histories
|
217
|
+
has_many :atlanta_groups, :through => invoice_message_histories
|
218
|
+
has_many :customer_nodes, :through => invoice_message_histories
|
219
|
+
has_many :task_queues, :through => invoice_message_histories
|
220
|
+
has_many :invoice_formats, :through => invoice_message_histories
|
221
|
+
has_many :account_types, :through => invoice_message_histories
|
222
|
+
has_many :schedules, :through => invoice_message_histories
|
223
|
+
has_many :invoice_messages, :through => invoice_message_histories
|
224
|
+
has_many :atlanta_groups, :through => invoice_type_histories
|
225
|
+
has_many :invoice_types, :through => invoice_type_histories
|
226
|
+
has_many :expression_lists, :through => invoice_type_histories
|
227
|
+
has_many :atlanta_groups, :through => isp_email_addresses
|
228
|
+
has_many :task_queues, :through => normalised_event_files
|
229
|
+
has_many :normalised_event_files, :through => normalised_event_files
|
230
|
+
has_many :normalised_event_fts, :through => normalised_event_files
|
231
|
+
has_many :atlanta_groups, :through => normalised_event_ft_hists
|
232
|
+
has_many :normalised_event_fts, :through => normalised_event_ft_hists
|
233
|
+
has_many :dils, :through => normalised_event_ft_hists
|
234
|
+
has_many :expression_lists, :through => normalised_event_ft_hists
|
235
|
+
has_many :atlanta_groups, :through => normalised_event_types
|
236
|
+
has_many :normalised_event_types, :through => normalised_event_types
|
237
|
+
has_many :atlanta_groups, :through => output_devices
|
238
|
+
has_many :output_devices, :through => output_devices
|
239
|
+
has_many :atlanta_groups, :through => output_methods
|
240
|
+
has_many :output_method_types, :through => output_methods
|
241
|
+
has_many :output_methods, :through => output_methods
|
242
|
+
has_many :output_devices, :through => output_methods
|
243
|
+
has_many :atlanta_groups, :through => output_method_types
|
244
|
+
has_many :output_method_types, :through => output_method_types
|
245
|
+
has_many :payment_types, :through => payments
|
246
|
+
has_many :customer_nodes, :through => payments
|
247
|
+
has_many :currencies, :through => payments
|
248
|
+
has_many :invoices, :through => payments
|
249
|
+
has_many :payment_batches, :through => payments
|
250
|
+
has_many :people, :through => payments
|
251
|
+
has_many :payments, :through => payments
|
252
|
+
has_many :payment_types, :through => payment_batches
|
253
|
+
has_many :currencies, :through => payment_batches
|
254
|
+
has_many :payment_batches, :through => payment_batches
|
255
|
+
has_many :atlanta_groups, :through => payment_types
|
256
|
+
has_many :payment_types, :through => payment_types
|
257
|
+
has_many :currencies, :through => payment_types
|
258
|
+
has_many :entity_validations, :through => payment_types
|
259
|
+
has_many :atlanta_groups, :through => person_histories
|
260
|
+
has_many :person_types, :through => person_histories
|
261
|
+
has_many :people, :through => person_histories
|
262
|
+
has_many :atlanta_groups, :through => person_types
|
263
|
+
has_many :icons, :through => person_types
|
264
|
+
has_many :address_formats, :through => person_types
|
265
|
+
has_many :person_types, :through => person_types
|
266
|
+
has_many :entity_validations, :through => person_types
|
267
|
+
has_many :atlanta_groups, :through => product_group_histories
|
268
|
+
has_many :product_groups, :through => product_group_histories
|
269
|
+
has_many :atlanta_groups, :through => product_histories
|
270
|
+
has_many :contract_types, :through => product_histories
|
271
|
+
has_many :icons, :through => product_histories
|
272
|
+
has_many :products, :through => product_histories
|
273
|
+
has_many :customer_nodes, :through => product_instance_histories
|
274
|
+
has_many :products, :through => product_instance_histories
|
275
|
+
has_many :contracts, :through => product_instance_histories
|
276
|
+
has_many :product_instances, :through => product_instance_histories
|
277
|
+
has_many :atlanta_groups, :through => receivable_type_histories
|
278
|
+
has_many :accounts, :through => receivable_type_histories
|
279
|
+
has_many :receivable_types, :through => receivable_type_histories
|
280
|
+
has_many :gl_codes, :through => receivable_type_histories
|
281
|
+
has_many :atlanta_groups, :through => reference_types
|
282
|
+
has_many :reference_types, :through => reference_types
|
283
|
+
has_many :normalised_event_files, :through => reprocessed_files
|
284
|
+
has_many :task_queues, :through => reprocessed_files
|
285
|
+
has_many :reprocessed_files, :through => reprocessed_files
|
286
|
+
has_many :atlanta_groups, :through => schedules
|
287
|
+
has_many :schedule_task_types, :through => schedules
|
288
|
+
has_many :schedules, :through => schedules
|
289
|
+
has_many :atlanta_groups, :through => schedule_task_types
|
290
|
+
has_many :error_messages, :through => schedule_task_types
|
291
|
+
has_many :schedule_task_types, :through => schedule_task_types
|
292
|
+
has_many :entity_validations, :through => schedule_task_types
|
293
|
+
has_many :customer_nodes, :through => service_histories
|
294
|
+
has_many :service_types, :through => service_histories
|
295
|
+
has_many :services, :through => service_histories
|
296
|
+
has_many :gl_codes, :through => service_histories
|
297
|
+
has_many :contracts, :through => service_histories
|
298
|
+
has_many :people, :through => service_histories
|
299
|
+
has_many :atlanta_groups, :through => service_types
|
300
|
+
has_many :icons, :through => service_types
|
301
|
+
has_many :address_formats, :through => service_types
|
302
|
+
has_many :service_types, :through => service_types
|
303
|
+
has_many :gl_codes, :through => service_types
|
304
|
+
has_many :atlanta_groups, :through => subtotal_histories
|
305
|
+
has_many :subtotals, :through => subtotal_histories
|
306
|
+
has_many :currencies, :through => subtotal_histories
|
307
|
+
has_many :receivable_types, :through => subtotal_histories
|
308
|
+
has_many :gl_codes, :through => subtotal_histories
|
309
|
+
has_many :atlanta_groups, :through => summary_of_change_views
|
310
|
+
has_many :summary_of_change_views, :through => summary_of_change_views
|
311
|
+
has_many :atlanta_groups, :through => tariff_histories
|
312
|
+
has_many :currencies, :through => tariff_histories
|
313
|
+
has_many :tariffs, :through => tariff_histories
|
314
|
+
has_many :charge_categories, :through => tariff_histories
|
315
|
+
has_many :receivable_types, :through => tariff_histories
|
316
|
+
has_many :atlanta_groups, :through => task_queues
|
317
|
+
has_many :task_queues, :through => task_queues
|
318
|
+
has_many :schedules, :through => task_queues
|
319
|
+
has_many :atlanta_groups, :through => template_histories
|
320
|
+
has_many :templates, :through => template_histories
|
321
|
+
has_many :atlanta_groups, :through => variable_defn_histories
|
322
|
+
has_many :variable_defns, :through => variable_defn_histories
|
323
|
+
has_many :atlanta_groups, :through => work_forces
|
324
|
+
has_many :work_forces, :through => work_forces
|
325
|
+
validates_presence_of :atlanta_operator_id
|
326
|
+
validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
|
327
|
+
validates_presence_of :operator_full_name
|
328
|
+
validates_length_of :operator_full_name, :allow_nil => false, :maximum => 80
|
329
|
+
validates_presence_of :operator_login_name
|
330
|
+
validates_length_of :operator_login_name, :allow_nil => false, :maximum => 30
|
331
|
+
validates_length_of :description, :allow_nil => true, :maximum => 255
|
332
|
+
validates_presence_of :last_modified
|
333
|
+
validates_presence_of :last_mod_atlanta_operator_id
|
334
|
+
validates_numericality_of :last_mod_atlanta_operator_id, :allow_nil => false, :only_integer => true
|
335
|
+
validates_presence_of :atlanta_group_id
|
336
|
+
validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
|
337
|
+
validates_presence_of :atlanta_profile_id
|
338
|
+
validates_numericality_of :atlanta_profile_id, :allow_nil => false, :only_integer => true
|
339
|
+
validates_presence_of :email_address
|
340
|
+
validates_length_of :email_address, :allow_nil => false, :maximum => 255
|
341
|
+
validates_length_of :work_phone_nr, :allow_nil => true, :maximum => 30
|
342
|
+
validates_length_of :home_phone_nr, :allow_nil => true, :maximum => 30
|
343
|
+
validates_length_of :fax_nr, :allow_nil => true, :maximum => 30
|
344
|
+
validates_numericality_of :person_id, :allow_nil => true, :only_integer => true
|
345
|
+
validates_numericality_of :superuser_ind_code, :allow_nil => true, :only_integer => true
|
346
|
+
validates_length_of :general_1, :allow_nil => true, :maximum => 255
|
347
|
+
validates_length_of :general_2, :allow_nil => true, :maximum => 255
|
348
|
+
validates_length_of :general_3, :allow_nil => true, :maximum => 255
|
349
|
+
validates_length_of :general_4, :allow_nil => true, :maximum => 255
|
350
|
+
validates_length_of :general_5, :allow_nil => true, :maximum => 255
|
351
|
+
validates_length_of :general_6, :allow_nil => true, :maximum => 255
|
352
|
+
validates_length_of :general_7, :allow_nil => true, :maximum => 255
|
353
|
+
validates_length_of :general_8, :allow_nil => true, :maximum => 255
|
354
|
+
validates_length_of :general_9, :allow_nil => true, :maximum => 255
|
355
|
+
validates_length_of :general_10, :allow_nil => true, :maximum => 255
|
356
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
class AtlantaProfile < ActiveRecord::Base
|
2
|
+
belongs_to :atlanta_profile, :class_name => 'AtlantaProfile', :foreign_key => :atlanta_profile_id
|
3
|
+
belongs_to :atlanta_operator, :class_name => 'AtlantaOperator', :foreign_key => :atlanta_operator_id
|
4
|
+
belongs_to :atlanta_group, :class_name => 'AtlantaGroup', :foreign_key => :atlanta_group_id
|
5
|
+
has_many :atlanta_operators, :class_name => 'AtlantaOperator', :foreign_key => :atlanta_profile_id
|
6
|
+
has_many :atlanta_profiles, :class_name => 'AtlantaProfile', :foreign_key => :atlanta_profile_id
|
7
|
+
has_many :atlanta_profile_func_maps, :class_name => 'AtlantaProfileFuncMap', :foreign_key => :atlanta_profile_id
|
8
|
+
has_many :atlanta_profile_group_maps, :class_name => 'AtlantaProfileGroupMap', :foreign_key => :atlanta_profile_id
|
9
|
+
has_many :atlanta_profile_role_maps, :class_name => 'AtlantaProfileRoleMap', :foreign_key => :atlanta_profile_id
|
10
|
+
has_many :atlanta_profile_wf_maps, :class_name => 'AtlantaProfileWfMap', :foreign_key => :atlanta_profile_id
|
11
|
+
has_many :atlanta_groups, :through => atlanta_operators
|
12
|
+
has_many :atlanta_operators, :through => atlanta_operators
|
13
|
+
has_many :people, :through => atlanta_operators
|
14
|
+
has_many :atlanta_groups, :through => atlanta_profiles
|
15
|
+
has_many :atlanta_operators, :through => atlanta_profiles
|
16
|
+
has_many :function_roles, :through => atlanta_profile_func_maps
|
17
|
+
has_many :atlanta_groups, :through => atlanta_profile_group_maps
|
18
|
+
has_many :atlanta_roles, :through => atlanta_profile_role_maps
|
19
|
+
has_many :work_forces, :through => atlanta_profile_wf_maps
|
20
|
+
validates_presence_of :atlanta_profile_id
|
21
|
+
validates_numericality_of :atlanta_profile_id, :allow_nil => false, :only_integer => true
|
22
|
+
validates_presence_of :atlanta_profile_name
|
23
|
+
validates_length_of :atlanta_profile_name, :allow_nil => false, :maximum => 30
|
24
|
+
validates_length_of :description, :allow_nil => true, :maximum => 255
|
25
|
+
validates_presence_of :last_modified
|
26
|
+
validates_presence_of :atlanta_operator_id
|
27
|
+
validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
|
28
|
+
validates_presence_of :atlanta_group_id
|
29
|
+
validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
|
30
|
+
validates_presence_of :primary_atlanta_group_id
|
31
|
+
validates_numericality_of :primary_atlanta_group_id, :allow_nil => false, :only_integer => true
|
32
|
+
validates_presence_of :max_adjustment_amount
|
33
|
+
validates_numericality_of :max_adjustment_amount, :allow_nil => false
|
34
|
+
validates_presence_of :adjustment_currency_id
|
35
|
+
validates_numericality_of :adjustment_currency_id, :allow_nil => false, :only_integer => true
|
36
|
+
validates_length_of :general_1, :allow_nil => true, :maximum => 255
|
37
|
+
validates_length_of :general_2, :allow_nil => true, :maximum => 255
|
38
|
+
validates_length_of :general_3, :allow_nil => true, :maximum => 255
|
39
|
+
validates_length_of :general_4, :allow_nil => true, :maximum => 255
|
40
|
+
validates_length_of :general_5, :allow_nil => true, :maximum => 255
|
41
|
+
validates_length_of :general_6, :allow_nil => true, :maximum => 255
|
42
|
+
validates_length_of :general_7, :allow_nil => true, :maximum => 255
|
43
|
+
validates_length_of :general_8, :allow_nil => true, :maximum => 255
|
44
|
+
validates_length_of :general_9, :allow_nil => true, :maximum => 255
|
45
|
+
validates_length_of :general_10, :allow_nil => true, :maximum => 255
|
46
|
+
validates_length_of :version_str, :allow_nil => true, :maximum => 255
|
47
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class AtlantaProfileFuncMap < ActiveRecord::Base
|
2
|
+
belongs_to :atlanta_profile, :class_name => 'AtlantaProfile', :foreign_key => :atlanta_profile_id
|
3
|
+
belongs_to :function_role, :class_name => 'FunctionRole', :foreign_key => :function_role_id
|
4
|
+
validates_presence_of :atlanta_profile_id
|
5
|
+
validates_numericality_of :atlanta_profile_id, :allow_nil => false, :only_integer => true
|
6
|
+
validates_presence_of :function_role_id
|
7
|
+
validates_numericality_of :function_role_id, :allow_nil => false, :only_integer => true
|
8
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
class AtlantaProfileGroupMap < ActiveRecord::Base
|
2
|
+
belongs_to :atlanta_profile, :class_name => 'AtlantaProfile', :foreign_key => :atlanta_profile_id
|
3
|
+
belongs_to :atlanta_group, :class_name => 'AtlantaGroup', :foreign_key => :atlanta_group_id
|
4
|
+
validates_presence_of :atlanta_profile_id
|
5
|
+
validates_numericality_of :atlanta_profile_id, :allow_nil => false, :only_integer => true
|
6
|
+
validates_presence_of :atlanta_group_id
|
7
|
+
validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
|
8
|
+
validates_presence_of :access_level
|
9
|
+
validates_numericality_of :access_level, :allow_nil => false, :only_integer => true
|
10
|
+
end
|