magic_model_generator 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +8 -0
- data/License.txt +20 -0
- data/Manifest.txt +81 -0
- data/{README → README.txt} +0 -0
- data/Rakefile +58 -59
- data/lib/activerecord/base.rb +0 -2
- data/lib/magic_model_generator.rb +0 -2
- data/lib/magic_model_generator/schema.rb +1 -5
- data/lib/magic_model_generator/validations.rb +1 -0
- data/lib/magic_model_generator/version.rb +1 -1
- data/scripts/txt2html +67 -0
- data/setup.rb +1585 -0
- data/tasks/build_db.rake +85 -0
- data/test/connections/native_db2/connection.rb +25 -0
- data/test/connections/native_firebird/connection.rb +26 -0
- data/test/connections/native_frontbase/connection.rb +27 -0
- data/test/connections/native_mysql/connection.rb +27 -0
- data/test/connections/native_openbase/connection.rb +21 -0
- data/test/connections/native_oracle/connection.rb +27 -0
- data/test/connections/native_postgresql/connection.rb +23 -0
- data/test/connections/native_sqlite/connection.rb +25 -0
- data/test/connections/native_sqlite3/connection.rb +25 -0
- data/test/connections/native_sqlite3/in_memory_connection.rb +18 -0
- data/test/connections/native_sqlserver/connection.rb +23 -0
- data/test/connections/native_sqlserver_odbc/connection.rb +25 -0
- data/test/connections/native_sybase/connection.rb +23 -0
- data/test/fixtures/db_definitions/db2.drop.sql +32 -0
- data/test/fixtures/db_definitions/db2.sql +231 -0
- data/test/fixtures/db_definitions/db22.drop.sql +2 -0
- data/test/fixtures/db_definitions/db22.sql +5 -0
- data/test/fixtures/db_definitions/firebird.drop.sql +63 -0
- data/test/fixtures/db_definitions/firebird.sql +304 -0
- data/test/fixtures/db_definitions/firebird2.drop.sql +2 -0
- data/test/fixtures/db_definitions/firebird2.sql +6 -0
- data/test/fixtures/db_definitions/frontbase.drop.sql +32 -0
- data/test/fixtures/db_definitions/frontbase.sql +268 -0
- data/test/fixtures/db_definitions/frontbase2.drop.sql +1 -0
- data/test/fixtures/db_definitions/frontbase2.sql +4 -0
- data/test/fixtures/db_definitions/mysql.drop.sql +32 -0
- data/test/fixtures/db_definitions/mysql.sql +234 -0
- data/test/fixtures/db_definitions/mysql2.drop.sql +2 -0
- data/test/fixtures/db_definitions/mysql2.sql +5 -0
- data/test/fixtures/db_definitions/openbase.drop.sql +2 -0
- data/test/fixtures/db_definitions/openbase.sql +302 -0
- data/test/fixtures/db_definitions/openbase2.drop.sql +2 -0
- data/test/fixtures/db_definitions/openbase2.sql +7 -0
- data/test/fixtures/db_definitions/oracle.drop.sql +65 -0
- data/test/fixtures/db_definitions/oracle.sql +325 -0
- data/test/fixtures/db_definitions/oracle2.drop.sql +2 -0
- data/test/fixtures/db_definitions/oracle2.sql +6 -0
- data/test/fixtures/db_definitions/postgresql.drop.sql +37 -0
- data/test/fixtures/db_definitions/postgresql.sql +247 -0
- data/test/fixtures/db_definitions/postgresql2.drop.sql +2 -0
- data/test/fixtures/db_definitions/postgresql2.sql +4 -0
- data/test/fixtures/db_definitions/schema.rb +74 -0
- data/test/fixtures/db_definitions/sqlite.drop.sql +32 -0
- data/test/fixtures/db_definitions/sqlite.sql +215 -0
- data/test/fixtures/db_definitions/sqlite2.drop.sql +2 -0
- data/test/fixtures/db_definitions/sqlite2.sql +5 -0
- data/test/fixtures/db_definitions/sqlserver.drop.sql +34 -0
- data/test/fixtures/db_definitions/sqlserver.sql +243 -0
- data/test/fixtures/db_definitions/sqlserver2.drop.sql +2 -0
- data/test/fixtures/db_definitions/sqlserver2.sql +5 -0
- data/test/fixtures/db_definitions/sybase.drop.sql +34 -0
- data/test/fixtures/db_definitions/sybase.sql +218 -0
- data/test/fixtures/db_definitions/sybase2.drop.sql +4 -0
- data/test/fixtures/db_definitions/sybase2.sql +5 -0
- data/test/{magic_model_generator_test.rb → test_magic_model_generator.rb} +1 -1
- data/test/test_rails_app/test/test_helper.rb +36 -0
- data/website/index.html +165 -0
- data/website/index.txt +83 -0
- data/website/javascripts/rounded_corners_lite.inc.js +285 -0
- data/website/stylesheets/screen.css +138 -0
- data/website/template.js +3 -0
- data/website/template.rhtml +53 -0
- metadata +96 -329
- data/examples/singleview/account.rb +0 -94
- data/examples/singleview/account_history.rb +0 -21
- data/examples/singleview/account_reservation.rb +0 -26
- data/examples/singleview/account_type.rb +0 -54
- data/examples/singleview/account_type_aging.rb +0 -17
- data/examples/singleview/account_type_variable.rb +0 -8
- data/examples/singleview/address.rb +0 -8
- data/examples/singleview/address_format.rb +0 -49
- data/examples/singleview/address_history.rb +0 -28
- data/examples/singleview/adjustment.rb +0 -97
- data/examples/singleview/adjustment_batch.rb +0 -42
- data/examples/singleview/adjustment_invoice.rb +0 -17
- data/examples/singleview/adjustment_type.rb +0 -54
- data/examples/singleview/adjustment_type_variable.rb +0 -8
- data/examples/singleview/archive_lock_t.rb +0 -11
- data/examples/singleview/archive_result.rb +0 -15
- data/examples/singleview/archive_type.rb +0 -31
- data/examples/singleview/archive_type_table_list.rb +0 -15
- data/examples/singleview/atai_error_name.rb +0 -7
- data/examples/singleview/atlanta_form.rb +0 -23
- data/examples/singleview/atlanta_form_field.rb +0 -12
- data/examples/singleview/atlanta_group.rb +0 -285
- data/examples/singleview/atlanta_help_entry.rb +0 -32
- data/examples/singleview/atlanta_operator.rb +0 -356
- data/examples/singleview/atlanta_profile.rb +0 -47
- data/examples/singleview/atlanta_profile_func_map.rb +0 -8
- data/examples/singleview/atlanta_profile_group_map.rb +0 -10
- data/examples/singleview/atlanta_profile_role_map.rb +0 -8
- data/examples/singleview/atlanta_profile_wf_map.rb +0 -10
- data/examples/singleview/atlanta_role.rb +0 -23
- data/examples/singleview/atlanta_table_partition.rb +0 -39
- data/examples/singleview/attribute_type.rb +0 -75
- data/examples/singleview/attribute_type_variable.rb +0 -8
- data/examples/singleview/bill_run.rb +0 -93
- data/examples/singleview/bill_run_operation.rb +0 -54
- data/examples/singleview/bill_run_type.rb +0 -39
- data/examples/singleview/bill_run_type_status.rb +0 -12
- data/examples/singleview/bill_run_type_task.rb +0 -12
- data/examples/singleview/cache.rb +0 -23
- data/examples/singleview/cache_field.rb +0 -13
- data/examples/singleview/can_act_charge.rb +0 -16
- data/examples/singleview/charge.rb +0 -67
- data/examples/singleview/charge_category.rb +0 -45
- data/examples/singleview/charge_output_defn.rb +0 -13
- data/examples/singleview/charge_output_defn_history.rb +0 -22
- data/examples/singleview/charge_output_defn_var.rb +0 -10
- data/examples/singleview/configuration_attr_type.rb +0 -22
- data/examples/singleview/configuration_attribute.rb +0 -11
- data/examples/singleview/configuration_item.rb +0 -26
- data/examples/singleview/configuration_item_type.rb +0 -29
- data/examples/singleview/contract.rb +0 -35
- data/examples/singleview/contract_history.rb +0 -48
- data/examples/singleview/contract_type.rb +0 -58
- data/examples/singleview/contract_type_product.rb +0 -11
- data/examples/singleview/conversion_rate.rb +0 -14
- data/examples/singleview/currency.rb +0 -118
- data/examples/singleview/currency_history.rb +0 -28
- data/examples/singleview/customer_contact.rb +0 -12
- data/examples/singleview/customer_node.rb +0 -166
- data/examples/singleview/customer_node_bill_run.rb +0 -12
- data/examples/singleview/customer_node_charge_cat.rb +0 -22
- data/examples/singleview/customer_node_correspond.rb +0 -12
- data/examples/singleview/customer_node_da.rb +0 -11
- data/examples/singleview/customer_node_da_array.rb +0 -35
- data/examples/singleview/customer_node_history.rb +0 -86
- data/examples/singleview/customer_node_inv_format.rb +0 -33
- data/examples/singleview/customer_node_type.rb +0 -89
- data/examples/singleview/customer_node_type_cc.rb +0 -18
- data/examples/singleview/customer_node_type_da.rb +0 -8
- data/examples/singleview/customer_node_type_var.rb +0 -8
- data/examples/singleview/customer_query.rb +0 -80
- data/examples/singleview/customer_query_progress.rb +0 -20
- data/examples/singleview/customer_query_type.rb +0 -49
- data/examples/singleview/customer_query_type_var.rb +0 -8
- data/examples/singleview/delete_cascade.rb +0 -13
- data/examples/singleview/delete_cascade_group.rb +0 -21
- data/examples/singleview/delete_constraint.rb +0 -9
- data/examples/singleview/derived_attribute.rb +0 -32
- data/examples/singleview/derived_attribute_array.rb +0 -32
- data/examples/singleview/derived_attribute_history.rb +0 -41
- data/examples/singleview/derived_attribute_index.rb +0 -13
- data/examples/singleview/derived_attribute_value.rb +0 -19
- data/examples/singleview/dil.rb +0 -18
- data/examples/singleview/dil_history.rb +0 -24
- data/examples/singleview/dil_reference.rb +0 -9
- data/examples/singleview/dil_validation_t.rb +0 -6
- data/examples/singleview/dil_variable.rb +0 -10
- data/examples/singleview/dunning_t.rb +0 -14
- data/examples/singleview/entity_mapping.rb +0 -11
- data/examples/singleview/entity_remap.rb +0 -22
- data/examples/singleview/entity_validation.rb +0 -70
- data/examples/singleview/entity_validation_list.rb +0 -15
- data/examples/singleview/entity_validation_variable.rb +0 -8
- data/examples/singleview/equipment.rb +0 -28
- data/examples/singleview/equipment_history.rb +0 -62
- data/examples/singleview/equipment_type.rb +0 -57
- data/examples/singleview/equipment_type_variable.rb +0 -8
- data/examples/singleview/error_group.rb +0 -18
- data/examples/singleview/error_message.rb +0 -65
- data/examples/singleview/evs_address_equiv.rb +0 -17
- data/examples/singleview/evs_alias.rb +0 -12
- data/examples/singleview/evs_attribute_type_key.rb +0 -7
- data/examples/singleview/evt_equipment_changeover.rb +0 -9
- data/examples/singleview/expression_list.rb +0 -27
- data/examples/singleview/expression_list_value.rb +0 -17
- data/examples/singleview/fac_group_compatibility.rb +0 -11
- data/examples/singleview/fac_group_instance.rb +0 -19
- data/examples/singleview/fac_group_instance_hist.rb +0 -16
- data/examples/singleview/facility.rb +0 -9
- data/examples/singleview/facility_group.rb +0 -21
- data/examples/singleview/facility_group_history.rb +0 -21
- data/examples/singleview/foreign_key.rb +0 -9
- data/examples/singleview/function_defn.rb +0 -16
- data/examples/singleview/function_defn_history.rb +0 -35
- data/examples/singleview/function_role.rb +0 -24
- data/examples/singleview/function_role_map.rb +0 -10
- data/examples/singleview/gl_code.rb +0 -65
- data/examples/singleview/gl_code_history.rb +0 -20
- data/examples/singleview/gl_upload.rb +0 -10
- data/examples/singleview/icon.rb +0 -64
- data/examples/singleview/inv_loop_t.rb +0 -4
- data/examples/singleview/inv_report_accounts_t.rb +0 -25
- data/examples/singleview/invoice.rb +0 -134
- data/examples/singleview/invoice_contents.rb +0 -14
- data/examples/singleview/invoice_format.rb +0 -31
- data/examples/singleview/invoice_format_history.rb +0 -29
- data/examples/singleview/invoice_message.rb +0 -17
- data/examples/singleview/invoice_message_history.rb +0 -31
- data/examples/singleview/invoice_message_variable.rb +0 -10
- data/examples/singleview/invoice_receivable_type.rb +0 -13
- data/examples/singleview/invoice_type.rb +0 -23
- data/examples/singleview/invoice_type_history.rb +0 -26
- data/examples/singleview/invoice_type_variable.rb +0 -10
- data/examples/singleview/isp_email_address.rb +0 -17
- data/examples/singleview/licence_current_values.rb +0 -12
- data/examples/singleview/menu_role_map.rb +0 -10
- data/examples/singleview/normalised_event.rb +0 -119
- data/examples/singleview/normalised_event_error.rb +0 -91
- data/examples/singleview/normalised_event_file.rb +0 -75
- data/examples/singleview/normalised_event_ft.rb +0 -18
- data/examples/singleview/normalised_event_ft_hist.rb +0 -25
- data/examples/singleview/normalised_event_ft_var.rb +0 -10
- data/examples/singleview/normalised_event_type.rb +0 -54
- data/examples/singleview/output_device.rb +0 -37
- data/examples/singleview/output_method.rb +0 -32
- data/examples/singleview/output_method_type.rb +0 -38
- data/examples/singleview/output_select.rb +0 -17
- data/examples/singleview/payment.rb +0 -102
- data/examples/singleview/payment_batch.rb +0 -43
- data/examples/singleview/payment_invoice.rb +0 -17
- data/examples/singleview/payment_item.rb +0 -15
- data/examples/singleview/payment_type.rb +0 -57
- data/examples/singleview/payment_type_variable.rb +0 -8
- data/examples/singleview/person.rb +0 -60
- data/examples/singleview/person_history.rb +0 -69
- data/examples/singleview/person_type.rb +0 -39
- data/examples/singleview/plan_table.rb +0 -27
- data/examples/singleview/product.rb +0 -45
- data/examples/singleview/product_compatibility.rb +0 -13
- data/examples/singleview/product_derived_attribute.rb +0 -10
- data/examples/singleview/product_facility_group.rb +0 -16
- data/examples/singleview/product_group.rb +0 -12
- data/examples/singleview/product_group_history.rb +0 -20
- data/examples/singleview/product_history.rb +0 -35
- data/examples/singleview/product_in_product_group.rb +0 -12
- data/examples/singleview/product_instance.rb +0 -41
- data/examples/singleview/product_instance_equip.rb +0 -21
- data/examples/singleview/product_instance_history.rb +0 -37
- data/examples/singleview/product_instance_service.rb +0 -17
- data/examples/singleview/product_payment_item.rb +0 -19
- data/examples/singleview/product_service_type.rb +0 -32
- data/examples/singleview/product_service_type_equip.rb +0 -20
- data/examples/singleview/product_subtotal.rb +0 -14
- data/examples/singleview/product_tariff.rb +0 -16
- data/examples/singleview/racr_clec_t1.rb +0 -12
- data/examples/singleview/racr_clec_t2.rb +0 -12
- data/examples/singleview/racr_clec_t3.rb +0 -28
- data/examples/singleview/racr_t.rb +0 -29
- data/examples/singleview/ragd_clec_t.rb +0 -47
- data/examples/singleview/ragd_t.rb +0 -28
- data/examples/singleview/rapc_t.rb +0 -27
- data/examples/singleview/rdfd_cmn_t.rb +0 -17
- data/examples/singleview/rdfd_t.rb +0 -16
- data/examples/singleview/receivable_type.rb +0 -49
- data/examples/singleview/receivable_type_history.rb +0 -25
- data/examples/singleview/reference_code.rb +0 -17
- data/examples/singleview/reference_type.rb +0 -32
- data/examples/singleview/release_info.rb +0 -10
- data/examples/singleview/report_reference_type.rb +0 -14
- data/examples/singleview/report_reference_type_defs.rb +0 -12
- data/examples/singleview/reprocessed_file.rb +0 -32
- data/examples/singleview/rgp_file.rb +0 -22
- data/examples/singleview/rgp_normalised_event.rb +0 -78
- data/examples/singleview/rmag_t.rb +0 -32
- data/examples/singleview/rpmr_t.rb +0 -27
- data/examples/singleview/rpsi_t.rb +0 -24
- data/examples/singleview/rser_t.rb +0 -13
- data/examples/singleview/rshu_cmn_t.rb +0 -31
- data/examples/singleview/schedule.rb +0 -91
- data/examples/singleview/schedule_task_type.rb +0 -43
- data/examples/singleview/service.rb +0 -88
- data/examples/singleview/service_bill_run_t.rb +0 -12
- data/examples/singleview/service_charge_category.rb +0 -22
- data/examples/singleview/service_da.rb +0 -11
- data/examples/singleview/service_da_array.rb +0 -35
- data/examples/singleview/service_duplicate.rb +0 -4
- data/examples/singleview/service_history.rb +0 -59
- data/examples/singleview/service_type.rb +0 -54
- data/examples/singleview/service_type_cc.rb +0 -18
- data/examples/singleview/service_type_da.rb +0 -8
- data/examples/singleview/service_type_equip_type.rb +0 -11
- data/examples/singleview/subtotal.rb +0 -48
- data/examples/singleview/subtotal_history.rb +0 -59
- data/examples/singleview/subtotal_rating_delta.rb +0 -20
- data/examples/singleview/subtotal_rating_value.rb +0 -21
- data/examples/singleview/subtotal_term.rb +0 -16
- data/examples/singleview/subtotal_value.rb +0 -18
- data/examples/singleview/summary_of_change.rb +0 -31
- data/examples/singleview/summary_of_change_ev.rb +0 -18
- data/examples/singleview/summary_of_change_view.rb +0 -22
- data/examples/singleview/t2_anumber_france.rb +0 -22
- data/examples/singleview/t2_anumber_italy.rb +0 -22
- data/examples/singleview/t2_anumber_netherlands.rb +0 -24
- data/examples/singleview/t2_anumber_portugal.rb +0 -22
- data/examples/singleview/t2_anumber_spain.rb +0 -22
- data/examples/singleview/t2_anumber_switzerland.rb +0 -24
- data/examples/singleview/t2_bankreference_austria.rb +0 -7
- data/examples/singleview/t2_bankreference_belgium.rb +0 -6
- data/examples/singleview/t2_bankreference_france.rb +0 -7
- data/examples/singleview/t2_bankreference_germany.rb +0 -7
- data/examples/singleview/t2_bankreference_italy.rb +0 -7
- data/examples/singleview/t2_bankreference_portugal.rb +0 -7
- data/examples/singleview/t2_cc_provrequests.rb +0 -19
- data/examples/singleview/t2_emf_info.rb +0 -12
- data/examples/singleview/t2_ev_column_label_mapping.rb +0 -9
- data/examples/singleview/t2_historytable.rb +0 -26
- data/examples/singleview/t2_inv_revoked_invoice.rb +0 -11
- data/examples/singleview/t2_inv_suppress_invoice.rb +0 -13
- data/examples/singleview/t2_national_number_plan.rb +0 -8
- data/examples/singleview/t2_pay_statement.rb +0 -28
- data/examples/singleview/t2_prov_req_action.rb +0 -22
- data/examples/singleview/t2_prov_request.rb +0 -32
- data/examples/singleview/t2_rep_brr_t.rb +0 -19
- data/examples/singleview/t2_rep_trr_t.rb +0 -19
- data/examples/singleview/t2_rep_ubr_t.rb +0 -19
- data/examples/singleview/t2_taxclass.rb +0 -8
- data/examples/singleview/t2_zipcode_austria.rb +0 -8
- data/examples/singleview/t2_zipcode_france.rb +0 -8
- data/examples/singleview/t2_zipcode_germany.rb +0 -8
- data/examples/singleview/t2_zipcode_hungary.rb +0 -8
- data/examples/singleview/t2_zipcode_luxembourg.rb +0 -8
- data/examples/singleview/t2_zipcode_netherlands.rb +0 -8
- data/examples/singleview/t2_zipcode_portugal.rb +0 -9
- data/examples/singleview/t2_zipcode_spain.rb +0 -8
- data/examples/singleview/t2_zipcode_switzerland.rb +0 -8
- data/examples/singleview/table_import_order.rb +0 -6
- data/examples/singleview/tariff.rb +0 -51
- data/examples/singleview/tariff_charge.rb +0 -33
- data/examples/singleview/tariff_charge_defn.rb +0 -18
- data/examples/singleview/tariff_condition_defn.rb +0 -19
- data/examples/singleview/tariff_history.rb +0 -70
- data/examples/singleview/tariff_recurring.rb +0 -36
- data/examples/singleview/task_queue.rb +0 -130
- data/examples/singleview/task_queue_result.rb +0 -10
- data/examples/singleview/template.rb +0 -18
- data/examples/singleview/template_history.rb +0 -30
- data/examples/singleview/template_reference.rb +0 -9
- data/examples/singleview/template_variable.rb +0 -10
- data/examples/singleview/trt_clec_treatment.rb +0 -13
- data/examples/singleview/variable_defn.rb +0 -48
- data/examples/singleview/variable_defn_dependency.rb +0 -11
- data/examples/singleview/variable_defn_direct.rb +0 -15
- data/examples/singleview/variable_defn_history.rb +0 -22
- data/examples/singleview/work_force.rb +0 -25
- data/examples/singleview/xpsi_addr_val_commtax21.rb +0 -24
- data/examples/singleview/xpsi_addr_val_msag.rb +0 -24
- data/examples/singleview/xpsi_addr_val_zip.rb +0 -14
- data/examples/singleview/xpsi_ne_batch.rb +0 -20
- data/examples/singleview/xpsi_product_batch.rb +0 -18
- data/examples/singleview/xpsi_product_status.rb +0 -14
- data/examples/singleview/xpsi_tax_error.rb +0 -34
- data/examples/singleview/xpsi_trt_revoke.rb +0 -68
- data/examples/singleview/xpsi_trt_revoke_prod_inst.rb +0 -12
- data/examples/singleview/xpsi_update_capture.rb +0 -35
@@ -1,18 +0,0 @@
|
|
1
|
-
class ServiceTypeCc < ActiveRecord::Base
|
2
|
-
belongs_to :service_type, :class_name => 'ServiceType', :foreign_key => :service_type_id
|
3
|
-
belongs_to :charge_category, :class_name => 'ChargeCategory', :foreign_key => :charge_category_id
|
4
|
-
validates_presence_of :service_type_id
|
5
|
-
validates_numericality_of :service_type_id, :allow_nil => false, :only_integer => true
|
6
|
-
validates_presence_of :charge_category_id
|
7
|
-
validates_numericality_of :charge_category_id, :allow_nil => false, :only_integer => true
|
8
|
-
validates_presence_of :description
|
9
|
-
validates_length_of :description, :allow_nil => false, :maximum => 255
|
10
|
-
validates_numericality_of :from_account_type_id, :allow_nil => true, :only_integer => true
|
11
|
-
validates_numericality_of :from_gl_code_id, :allow_nil => true, :only_integer => true
|
12
|
-
validates_numericality_of :from_customer_node_type_id, :allow_nil => true, :only_integer => true
|
13
|
-
validates_numericality_of :from_account_id, :allow_nil => true, :only_integer => true
|
14
|
-
validates_numericality_of :to_account_type_id, :allow_nil => true, :only_integer => true
|
15
|
-
validates_numericality_of :to_gl_code_id, :allow_nil => true, :only_integer => true
|
16
|
-
validates_numericality_of :to_customer_node_type_id, :allow_nil => true, :only_integer => true
|
17
|
-
validates_numericality_of :to_account_id, :allow_nil => true, :only_integer => true
|
18
|
-
end
|
@@ -1,8 +0,0 @@
|
|
1
|
-
class ServiceTypeDa < ActiveRecord::Base
|
2
|
-
belongs_to :service_type, :class_name => 'ServiceType', :foreign_key => :service_type_id
|
3
|
-
belongs_to :derived_attribute, :class_name => 'DerivedAttribute', :foreign_key => :derived_attribute_id
|
4
|
-
validates_presence_of :service_type_id
|
5
|
-
validates_numericality_of :service_type_id, :allow_nil => false, :only_integer => true
|
6
|
-
validates_presence_of :derived_attribute_id
|
7
|
-
validates_numericality_of :derived_attribute_id, :allow_nil => false, :only_integer => true
|
8
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
class ServiceTypeEquipType < ActiveRecord::Base
|
2
|
-
belongs_to :service_type, :class_name => 'ServiceType', :foreign_key => :service_type_id
|
3
|
-
belongs_to :equipment_type, :class_name => 'EquipmentType', :foreign_key => :equipment_type_id
|
4
|
-
validates_presence_of :service_type_id
|
5
|
-
validates_numericality_of :service_type_id, :allow_nil => false, :only_integer => true
|
6
|
-
validates_presence_of :equipment_item_seqnr
|
7
|
-
validates_numericality_of :equipment_item_seqnr, :allow_nil => false, :only_integer => true
|
8
|
-
validates_presence_of :last_modified
|
9
|
-
validates_presence_of :equipment_type_id
|
10
|
-
validates_numericality_of :equipment_type_id, :allow_nil => false, :only_integer => true
|
11
|
-
end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
class Subtotal < ActiveRecord::Base
|
2
|
-
belongs_to :subtotal, :class_name => 'Subtotal', :foreign_key => :subtotal_id
|
3
|
-
belongs_to :variable_defn, :class_name => 'VariableDefn', :foreign_key => :variable_defn_id
|
4
|
-
has_many :charges, :class_name => 'Charge', :foreign_key => :subtotal_id
|
5
|
-
has_many :product_subtotals, :class_name => 'ProductSubtotal', :foreign_key => :subtotal_id
|
6
|
-
has_many :subtotals, :class_name => 'Subtotal', :foreign_key => :subtotal_id
|
7
|
-
has_many :subtotal_histories, :class_name => 'SubtotalHistory', :foreign_key => :subtotal_id
|
8
|
-
has_many :subtotal_rating_deltas, :class_name => 'SubtotalRatingDelta', :foreign_key => :subtotal_id
|
9
|
-
has_many :subtotal_rating_values, :class_name => 'SubtotalRatingValue', :foreign_key => :subtotal_id
|
10
|
-
has_many :subtotal_terms, :class_name => 'SubtotalTerm', :foreign_key => :subtotal_id
|
11
|
-
has_many :subtotal_values, :class_name => 'SubtotalValue', :foreign_key => :subtotal_id
|
12
|
-
has_many :customer_nodes, :through => charges
|
13
|
-
has_many :invoices, :through => charges
|
14
|
-
has_many :adjustments, :through => charges
|
15
|
-
has_many :accounts, :through => charges
|
16
|
-
has_many :currencies, :through => charges
|
17
|
-
has_many :tariffs, :through => charges
|
18
|
-
has_many :services, :through => charges
|
19
|
-
has_many :receivable_types, :through => charges
|
20
|
-
has_many :normalised_events, :through => charges
|
21
|
-
has_many :gl_codes, :through => charges
|
22
|
-
has_many :payments, :through => charges
|
23
|
-
has_many :charges, :through => charges
|
24
|
-
has_many :products, :through => product_subtotals
|
25
|
-
has_many :gl_codes, :through => product_subtotals
|
26
|
-
has_many :variable_defns, :through => subtotals
|
27
|
-
has_many :atlanta_groups, :through => subtotal_histories
|
28
|
-
has_many :currencies, :through => subtotal_histories
|
29
|
-
has_many :atlanta_operators, :through => subtotal_histories
|
30
|
-
has_many :receivable_types, :through => subtotal_histories
|
31
|
-
has_many :gl_codes, :through => subtotal_histories
|
32
|
-
has_many :customer_nodes, :through => subtotal_rating_deltas
|
33
|
-
has_many :normalised_event_files, :through => subtotal_rating_deltas
|
34
|
-
has_many :services, :through => subtotal_rating_deltas
|
35
|
-
has_many :normalised_events, :through => subtotal_rating_deltas
|
36
|
-
has_many :customer_nodes, :through => subtotal_rating_values
|
37
|
-
has_many :normalised_event_files, :through => subtotal_rating_values
|
38
|
-
has_many :services, :through => subtotal_rating_values
|
39
|
-
has_many :customer_nodes, :through => subtotal_values
|
40
|
-
has_many :invoices, :through => subtotal_values
|
41
|
-
has_many :services, :through => subtotal_values
|
42
|
-
validates_presence_of :subtotal_id
|
43
|
-
validates_numericality_of :subtotal_id, :allow_nil => false, :only_integer => true
|
44
|
-
validates_presence_of :variable_defn_id
|
45
|
-
validates_numericality_of :variable_defn_id, :allow_nil => false, :only_integer => true
|
46
|
-
validates_numericality_of :blob_variable_defn_id, :allow_nil => true, :only_integer => true
|
47
|
-
validates_length_of :version_str, :allow_nil => true, :maximum => 255
|
48
|
-
end
|
@@ -1,59 +0,0 @@
|
|
1
|
-
class SubtotalHistory < ActiveRecord::Base
|
2
|
-
belongs_to :subtotal, :class_name => 'Subtotal', :foreign_key => :subtotal_id
|
3
|
-
belongs_to :atlanta_operator, :class_name => 'AtlantaOperator', :foreign_key => :atlanta_operator_id
|
4
|
-
belongs_to :atlanta_group, :class_name => 'AtlantaGroup', :foreign_key => :atlanta_group_id
|
5
|
-
belongs_to :currency, :class_name => 'Currency', :foreign_key => :currency_id
|
6
|
-
belongs_to :gl_code, :class_name => 'GlCode', :foreign_key => :gl_code_id
|
7
|
-
belongs_to :receivable_type, :class_name => 'ReceivableType', :foreign_key => :receivable_type_id
|
8
|
-
validates_presence_of :subtotal_id
|
9
|
-
validates_numericality_of :subtotal_id, :allow_nil => false, :only_integer => true
|
10
|
-
validates_presence_of :last_modified
|
11
|
-
validates_presence_of :effective_start_date
|
12
|
-
validates_presence_of :effective_end_date
|
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_presence_of :subtotal_name
|
18
|
-
validates_length_of :subtotal_name, :allow_nil => false, :maximum => 67
|
19
|
-
validates_presence_of :description
|
20
|
-
validates_length_of :description, :allow_nil => false, :maximum => 2000
|
21
|
-
validates_presence_of :application_env_code
|
22
|
-
validates_numericality_of :application_env_code, :allow_nil => false, :only_integer => true
|
23
|
-
validates_numericality_of :master_subtotal_id, :allow_nil => true, :only_integer => true
|
24
|
-
validates_presence_of :data_type_code
|
25
|
-
validates_numericality_of :data_type_code, :allow_nil => false, :only_integer => true
|
26
|
-
validates_presence_of :context_code
|
27
|
-
validates_numericality_of :context_code, :allow_nil => false, :only_integer => true
|
28
|
-
validates_numericality_of :currency_id, :allow_nil => true, :only_integer => true
|
29
|
-
validates_length_of :currency_expr, :allow_nil => true, :maximum => 255
|
30
|
-
validates_presence_of :subtotal_status_code
|
31
|
-
validates_numericality_of :subtotal_status_code, :allow_nil => false, :only_integer => true
|
32
|
-
validates_numericality_of :eligibility_expression_list_id, :allow_nil => true, :only_integer => true
|
33
|
-
validates_length_of :default_invoice_txt, :allow_nil => true, :maximum => 255
|
34
|
-
validates_numericality_of :suppress_zero_ind_code, :allow_nil => true, :only_integer => true
|
35
|
-
validates_presence_of :aggregate_function_code
|
36
|
-
validates_numericality_of :aggregate_function_code, :allow_nil => false, :only_integer => true
|
37
|
-
validates_numericality_of :aggregate_ind_code, :allow_nil => true, :only_integer => true
|
38
|
-
validates_length_of :do_not_aggregate_expr, :allow_nil => true, :maximum => 255
|
39
|
-
validates_numericality_of :running_ind_code, :allow_nil => true, :only_integer => true
|
40
|
-
validates_numericality_of :retain_ind_code, :allow_nil => true, :only_integer => true
|
41
|
-
validates_numericality_of :global_ind_code, :allow_nil => true, :only_integer => true
|
42
|
-
validates_numericality_of :total_service_ind_code, :allow_nil => true, :only_integer => true
|
43
|
-
validates_numericality_of :dont_store_ind_code, :allow_nil => true, :only_integer => true
|
44
|
-
validates_numericality_of :dont_display_ind_code, :allow_nil => true, :only_integer => true
|
45
|
-
validates_length_of :key_variable_name, :allow_nil => true, :maximum => 66
|
46
|
-
validates_numericality_of :gl_code_id, :allow_nil => true, :only_integer => true
|
47
|
-
validates_length_of :gl_code_expr, :allow_nil => true, :maximum => 255
|
48
|
-
validates_numericality_of :from_gl_code_id, :allow_nil => true, :only_integer => true
|
49
|
-
validates_length_of :from_gl_code_expr, :allow_nil => true, :maximum => 255
|
50
|
-
validates_numericality_of :receivable_type_id, :allow_nil => true, :only_integer => true
|
51
|
-
validates_length_of :receivable_type_expr, :allow_nil => true, :maximum => 255
|
52
|
-
validates_numericality_of :invoice_section_nr, :allow_nil => true, :only_integer => true
|
53
|
-
validates_numericality_of :assignment_expression_list_id, :allow_nil => true, :only_integer => true
|
54
|
-
validates_numericality_of :bill_cycle_ind_code, :allow_nil => true, :only_integer => true
|
55
|
-
validates_numericality_of :rating_context_access_ind_code, :allow_nil => true, :only_integer => true
|
56
|
-
validates_length_of :from_date_expr, :allow_nil => true, :maximum => 255
|
57
|
-
validates_length_of :to_date_expr, :allow_nil => true, :maximum => 255
|
58
|
-
validates_numericality_of :rating_access_value_ind_code, :allow_nil => true, :only_integer => true
|
59
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
class SubtotalRatingDelta < ActiveRecord::Base
|
2
|
-
belongs_to :normalised_event, :class_name => 'NormalisedEvent', :foreign_key => :normalised_event_id
|
3
|
-
belongs_to :subtotal, :class_name => 'Subtotal', :foreign_key => :subtotal_id
|
4
|
-
belongs_to :service, :class_name => 'Service', :foreign_key => :service_id
|
5
|
-
belongs_to :customer_node, :class_name => 'CustomerNode', :foreign_key => :customer_node_id
|
6
|
-
belongs_to :normalised_event_file, :class_name => 'NormalisedEventFile', :foreign_key => :normalised_event_file_id
|
7
|
-
validates_presence_of :normalised_event_id
|
8
|
-
validates_numericality_of :normalised_event_id, :allow_nil => false, :only_integer => true
|
9
|
-
validates_presence_of :charge_start_date
|
10
|
-
validates_presence_of :subtotal_id
|
11
|
-
validates_numericality_of :subtotal_id, :allow_nil => false, :only_integer => true
|
12
|
-
validates_numericality_of :service_id, :allow_nil => true, :only_integer => true
|
13
|
-
validates_numericality_of :customer_node_id, :allow_nil => true, :only_integer => true
|
14
|
-
validates_numericality_of :normalised_event_file_id, :allow_nil => true, :only_integer => true
|
15
|
-
validates_presence_of :delta_value
|
16
|
-
validates_numericality_of :delta_value, :allow_nil => false
|
17
|
-
validates_length_of :key_value, :allow_nil => true, :maximum => 255
|
18
|
-
validates_presence_of :partition_nr
|
19
|
-
validates_numericality_of :partition_nr, :allow_nil => false, :only_integer => true
|
20
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
class SubtotalRatingValue < ActiveRecord::Base
|
2
|
-
belongs_to :subtotal, :class_name => 'Subtotal', :foreign_key => :subtotal_id
|
3
|
-
belongs_to :service, :class_name => 'Service', :foreign_key => :service_id
|
4
|
-
belongs_to :customer_node, :class_name => 'CustomerNode', :foreign_key => :customer_node_id
|
5
|
-
belongs_to :normalised_event_file, :class_name => 'NormalisedEventFile', :foreign_key => :normalised_event_file_id
|
6
|
-
validates_presence_of :subtotal_id
|
7
|
-
validates_numericality_of :subtotal_id, :allow_nil => false, :only_integer => true
|
8
|
-
validates_numericality_of :service_id, :allow_nil => true, :only_integer => true
|
9
|
-
validates_numericality_of :customer_node_id, :allow_nil => true, :only_integer => true
|
10
|
-
validates_numericality_of :normalised_event_file_id, :allow_nil => true, :only_integer => true
|
11
|
-
validates_presence_of :last_modified
|
12
|
-
validates_presence_of :start_date
|
13
|
-
validates_presence_of :end_date
|
14
|
-
validates_presence_of :event_start_date
|
15
|
-
validates_presence_of :event_end_date
|
16
|
-
validates_presence_of :value
|
17
|
-
validates_numericality_of :value, :allow_nil => false
|
18
|
-
validates_length_of :key_value, :allow_nil => true, :maximum => 255
|
19
|
-
validates_presence_of :partition_nr
|
20
|
-
validates_numericality_of :partition_nr, :allow_nil => false, :only_integer => true
|
21
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
class SubtotalTerm < ActiveRecord::Base
|
2
|
-
belongs_to :subtotal, :class_name => 'Subtotal', :foreign_key => :subtotal_id
|
3
|
-
validates_presence_of :subtotal_id
|
4
|
-
validates_numericality_of :subtotal_id, :allow_nil => false, :only_integer => true
|
5
|
-
validates_presence_of :seqnr
|
6
|
-
validates_numericality_of :seqnr, :allow_nil => false, :only_integer => true
|
7
|
-
validates_presence_of :last_modified
|
8
|
-
validates_presence_of :effective_start_date
|
9
|
-
validates_presence_of :effective_end_date
|
10
|
-
validates_presence_of :context_code
|
11
|
-
validates_numericality_of :context_code, :allow_nil => false, :only_integer => true
|
12
|
-
validates_presence_of :subtotal_term_expr
|
13
|
-
validates_length_of :subtotal_term_expr, :allow_nil => false, :maximum => 255
|
14
|
-
validates_length_of :key_expr, :allow_nil => true, :maximum => 255
|
15
|
-
validates_numericality_of :eligibility_expression_list_id, :allow_nil => true, :only_integer => true
|
16
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
class SubtotalValue < ActiveRecord::Base
|
2
|
-
belongs_to :invoice, :class_name => 'Invoice', :foreign_key => :invoice_id
|
3
|
-
belongs_to :customer_node, :class_name => 'CustomerNode', :foreign_key => :customer_node_id
|
4
|
-
belongs_to :service, :class_name => 'Service', :foreign_key => :service_id
|
5
|
-
belongs_to :subtotal, :class_name => 'Subtotal', :foreign_key => :subtotal_id
|
6
|
-
validates_presence_of :invoice_id
|
7
|
-
validates_numericality_of :invoice_id, :allow_nil => false, :only_integer => true
|
8
|
-
validates_presence_of :root_customer_node_id
|
9
|
-
validates_numericality_of :root_customer_node_id, :allow_nil => false, :only_integer => true
|
10
|
-
validates_numericality_of :customer_node_id, :allow_nil => true, :only_integer => true
|
11
|
-
validates_numericality_of :service_id, :allow_nil => true, :only_integer => true
|
12
|
-
validates_presence_of :subtotal_id
|
13
|
-
validates_numericality_of :subtotal_id, :allow_nil => false, :only_integer => true
|
14
|
-
validates_presence_of :effective_date
|
15
|
-
validates_presence_of :last_modified
|
16
|
-
validates_numericality_of :charge, :allow_nil => true
|
17
|
-
validates_length_of :key_value, :allow_nil => true, :maximum => 255
|
18
|
-
end
|
@@ -1,31 +0,0 @@
|
|
1
|
-
class SummaryOfChange < ActiveRecord::Base
|
2
|
-
belongs_to :summary_of_change_view, :class_name => 'SummaryOfChangeView', :foreign_key => :summary_of_change_view_id
|
3
|
-
validates_presence_of :summary_of_change_view_id
|
4
|
-
validates_numericality_of :summary_of_change_view_id, :allow_nil => false, :only_integer => true
|
5
|
-
validates_presence_of :column_name
|
6
|
-
validates_length_of :column_name, :allow_nil => false, :maximum => 30
|
7
|
-
validates_presence_of :display_seqnr
|
8
|
-
validates_numericality_of :display_seqnr, :allow_nil => false, :only_integer => true
|
9
|
-
validates_presence_of :data_type_code
|
10
|
-
validates_numericality_of :data_type_code, :allow_nil => false, :only_integer => true
|
11
|
-
validates_presence_of :table_name
|
12
|
-
validates_length_of :table_name, :allow_nil => false, :maximum => 30
|
13
|
-
validates_presence_of :ev_column_name
|
14
|
-
validates_length_of :ev_column_name, :allow_nil => false, :maximum => 30
|
15
|
-
validates_presence_of :last_modified
|
16
|
-
validates_length_of :default_group_label, :allow_nil => true, :maximum => 80
|
17
|
-
validates_length_of :ev_group_control_column, :allow_nil => true, :maximum => 30
|
18
|
-
validates_length_of :default_column_label, :allow_nil => true, :maximum => 80
|
19
|
-
validates_numericality_of :detail_insert_message_id, :allow_nil => true, :only_integer => true
|
20
|
-
validates_numericality_of :detail_insert_append_ind_code, :allow_nil => true, :only_integer => true
|
21
|
-
validates_numericality_of :detail_delete_message_id, :allow_nil => true, :only_integer => true
|
22
|
-
validates_numericality_of :detail_delete_append_ind_code, :allow_nil => true, :only_integer => true
|
23
|
-
validates_numericality_of :detail_grp_update_message_id, :allow_nil => true, :only_integer => true
|
24
|
-
validates_numericality_of :detail_update_message_id, :allow_nil => true, :only_integer => true
|
25
|
-
validates_numericality_of :summary_insert_message_id, :allow_nil => true, :only_integer => true
|
26
|
-
validates_numericality_of :summary_insert_append_ind_code, :allow_nil => true, :only_integer => true
|
27
|
-
validates_numericality_of :summary_delete_message_id, :allow_nil => true, :only_integer => true
|
28
|
-
validates_numericality_of :summary_delete_append_ind_code, :allow_nil => true, :only_integer => true
|
29
|
-
validates_numericality_of :summary_grp_update_message_id, :allow_nil => true, :only_integer => true
|
30
|
-
validates_numericality_of :summary_update_message_id, :allow_nil => true, :only_integer => true
|
31
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
class SummaryOfChangeEv < ActiveRecord::Base
|
2
|
-
belongs_to :summary_of_change_view, :class_name => 'SummaryOfChangeView', :foreign_key => :summary_of_change_view_id
|
3
|
-
belongs_to :reference_type, :class_name => 'ReferenceType', :foreign_key => :reference_type_id
|
4
|
-
validates_presence_of :summary_of_change_view_id
|
5
|
-
validates_numericality_of :summary_of_change_view_id, :allow_nil => false, :only_integer => true
|
6
|
-
validates_presence_of :type_id
|
7
|
-
validates_numericality_of :type_id, :allow_nil => false, :only_integer => true
|
8
|
-
validates_presence_of :column_name
|
9
|
-
validates_length_of :column_name, :allow_nil => false, :maximum => 30
|
10
|
-
validates_presence_of :last_modified
|
11
|
-
validates_presence_of :visible_ind_code
|
12
|
-
validates_numericality_of :visible_ind_code, :allow_nil => false, :only_integer => true
|
13
|
-
validates_length_of :group_label, :allow_nil => true, :maximum => 80
|
14
|
-
validates_length_of :column_label, :allow_nil => true, :maximum => 80
|
15
|
-
validates_presence_of :data_type_code
|
16
|
-
validates_numericality_of :data_type_code, :allow_nil => false, :only_integer => true
|
17
|
-
validates_numericality_of :reference_type_id, :allow_nil => true, :only_integer => true
|
18
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
class SummaryOfChangeView < ActiveRecord::Base
|
2
|
-
belongs_to :summary_of_change_view, :class_name => 'SummaryOfChangeView', :foreign_key => :summary_of_change_view_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 :summary_of_changes, :class_name => 'SummaryOfChange', :foreign_key => :summary_of_change_view_id
|
6
|
-
has_many :summary_of_change_evs, :class_name => 'SummaryOfChangeEv', :foreign_key => :summary_of_change_view_id
|
7
|
-
has_many :summary_of_change_views, :class_name => 'SummaryOfChangeView', :foreign_key => :summary_of_change_view_id
|
8
|
-
has_many :reference_types, :through => summary_of_change_evs
|
9
|
-
has_many :atlanta_groups, :through => summary_of_change_views
|
10
|
-
has_many :atlanta_operators, :through => summary_of_change_views
|
11
|
-
validates_presence_of :summary_of_change_view_id
|
12
|
-
validates_numericality_of :summary_of_change_view_id, :allow_nil => false, :only_integer => true
|
13
|
-
validates_presence_of :summary_of_change_view_name
|
14
|
-
validates_length_of :summary_of_change_view_name, :allow_nil => false, :maximum => 30
|
15
|
-
validates_length_of :description, :allow_nil => true, :maximum => 255
|
16
|
-
validates_presence_of :last_modified
|
17
|
-
validates_presence_of :atlanta_operator_id
|
18
|
-
validates_numericality_of :atlanta_operator_id, :allow_nil => false, :only_integer => true
|
19
|
-
validates_presence_of :atlanta_group_id
|
20
|
-
validates_numericality_of :atlanta_group_id, :allow_nil => false, :only_integer => true
|
21
|
-
validates_length_of :version_str, :allow_nil => true, :maximum => 255
|
22
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
class T2AnumberFrance < ActiveRecord::Base
|
2
|
-
validates_presence_of :service_name
|
3
|
-
validates_length_of :service_name, :allow_nil => false, :maximum => 64
|
4
|
-
validates_length_of :customer_node_type_name, :allow_nil => true, :maximum => 30
|
5
|
-
validates_length_of :familycompanyname, :allow_nil => true, :maximum => 70
|
6
|
-
validates_length_of :secondfamilyname, :allow_nil => true, :maximum => 50
|
7
|
-
validates_length_of :given_names, :allow_nil => true, :maximum => 80
|
8
|
-
validates_numericality_of :gender_code, :allow_nil => true, :only_integer => true
|
9
|
-
validates_length_of :title, :allow_nil => true, :maximum => 60
|
10
|
-
validates_numericality_of :language_code, :allow_nil => true, :only_integer => true
|
11
|
-
validates_length_of :addressline1, :allow_nil => true, :maximum => 240
|
12
|
-
validates_length_of :addressline2, :allow_nil => true, :maximum => 80
|
13
|
-
validates_length_of :addressline3, :allow_nil => true, :maximum => 80
|
14
|
-
validates_length_of :addressline4, :allow_nil => true, :maximum => 80
|
15
|
-
validates_length_of :post_code, :allow_nil => true, :maximum => 10
|
16
|
-
validates_length_of :city, :allow_nil => true, :maximum => 80
|
17
|
-
validates_length_of :state, :allow_nil => true, :maximum => 80
|
18
|
-
validates_length_of :country, :allow_nil => true, :maximum => 80
|
19
|
-
validates_presence_of :last_update
|
20
|
-
validates_length_of :identification_number, :allow_nil => true, :maximum => 16
|
21
|
-
validates_length_of :vat_number, :allow_nil => true, :maximum => 11
|
22
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
class T2AnumberItaly < ActiveRecord::Base
|
2
|
-
validates_presence_of :service_name
|
3
|
-
validates_length_of :service_name, :allow_nil => false, :maximum => 64
|
4
|
-
validates_length_of :customer_node_type_name, :allow_nil => true, :maximum => 30
|
5
|
-
validates_length_of :familycompanyname, :allow_nil => true, :maximum => 70
|
6
|
-
validates_length_of :secondfamilyname, :allow_nil => true, :maximum => 50
|
7
|
-
validates_length_of :given_names, :allow_nil => true, :maximum => 80
|
8
|
-
validates_numericality_of :gender_code, :allow_nil => true, :only_integer => true
|
9
|
-
validates_length_of :title, :allow_nil => true, :maximum => 60
|
10
|
-
validates_numericality_of :language_code, :allow_nil => true, :only_integer => true
|
11
|
-
validates_length_of :addressline1, :allow_nil => true, :maximum => 240
|
12
|
-
validates_length_of :addressline2, :allow_nil => true, :maximum => 80
|
13
|
-
validates_length_of :addressline3, :allow_nil => true, :maximum => 80
|
14
|
-
validates_length_of :addressline4, :allow_nil => true, :maximum => 80
|
15
|
-
validates_length_of :post_code, :allow_nil => true, :maximum => 10
|
16
|
-
validates_length_of :city, :allow_nil => true, :maximum => 80
|
17
|
-
validates_length_of :state, :allow_nil => true, :maximum => 80
|
18
|
-
validates_length_of :country, :allow_nil => true, :maximum => 80
|
19
|
-
validates_presence_of :last_update
|
20
|
-
validates_length_of :identification_number, :allow_nil => true, :maximum => 16
|
21
|
-
validates_length_of :vat_number, :allow_nil => true, :maximum => 11
|
22
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
class T2AnumberNetherlands < ActiveRecord::Base
|
2
|
-
validates_presence_of :service_name
|
3
|
-
validates_length_of :service_name, :allow_nil => false, :maximum => 64
|
4
|
-
validates_presence_of :customer_node_type_name
|
5
|
-
validates_length_of :customer_node_type_name, :allow_nil => false, :maximum => 30
|
6
|
-
validates_presence_of :familycompanyname
|
7
|
-
validates_length_of :familycompanyname, :allow_nil => false, :maximum => 120
|
8
|
-
validates_length_of :given_names, :allow_nil => true, :maximum => 80
|
9
|
-
validates_numericality_of :gender_code, :allow_nil => true, :only_integer => true
|
10
|
-
validates_length_of :title, :allow_nil => true, :maximum => 60
|
11
|
-
validates_presence_of :language_code
|
12
|
-
validates_numericality_of :language_code, :allow_nil => false, :only_integer => true
|
13
|
-
validates_length_of :addresstext, :allow_nil => true, :maximum => 240
|
14
|
-
validates_presence_of :post_code
|
15
|
-
validates_length_of :post_code, :allow_nil => false, :maximum => 10
|
16
|
-
validates_presence_of :city
|
17
|
-
validates_length_of :city, :allow_nil => false, :maximum => 80
|
18
|
-
validates_length_of :state, :allow_nil => true, :maximum => 80
|
19
|
-
validates_presence_of :country
|
20
|
-
validates_length_of :country, :allow_nil => false, :maximum => 80
|
21
|
-
validates_presence_of :last_update
|
22
|
-
validates_length_of :identification_number, :allow_nil => true, :maximum => 16
|
23
|
-
validates_length_of :vat_number, :allow_nil => true, :maximum => 11
|
24
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
class T2AnumberPortugal < ActiveRecord::Base
|
2
|
-
validates_presence_of :service_name
|
3
|
-
validates_length_of :service_name, :allow_nil => false, :maximum => 64
|
4
|
-
validates_length_of :customer_node_type_name, :allow_nil => true, :maximum => 30
|
5
|
-
validates_length_of :familycompanyname, :allow_nil => true, :maximum => 70
|
6
|
-
validates_length_of :secondfamilyname, :allow_nil => true, :maximum => 50
|
7
|
-
validates_length_of :given_names, :allow_nil => true, :maximum => 80
|
8
|
-
validates_numericality_of :gender_code, :allow_nil => true, :only_integer => true
|
9
|
-
validates_length_of :title, :allow_nil => true, :maximum => 60
|
10
|
-
validates_numericality_of :language_code, :allow_nil => true, :only_integer => true
|
11
|
-
validates_length_of :addressline1, :allow_nil => true, :maximum => 240
|
12
|
-
validates_length_of :addressline2, :allow_nil => true, :maximum => 80
|
13
|
-
validates_length_of :addressline3, :allow_nil => true, :maximum => 80
|
14
|
-
validates_length_of :addressline4, :allow_nil => true, :maximum => 80
|
15
|
-
validates_length_of :post_code, :allow_nil => true, :maximum => 10
|
16
|
-
validates_length_of :city, :allow_nil => true, :maximum => 80
|
17
|
-
validates_length_of :state, :allow_nil => true, :maximum => 80
|
18
|
-
validates_length_of :country, :allow_nil => true, :maximum => 80
|
19
|
-
validates_presence_of :last_update
|
20
|
-
validates_length_of :identification_number, :allow_nil => true, :maximum => 16
|
21
|
-
validates_length_of :vat_number, :allow_nil => true, :maximum => 11
|
22
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
class T2AnumberSpain < ActiveRecord::Base
|
2
|
-
validates_presence_of :service_name
|
3
|
-
validates_length_of :service_name, :allow_nil => false, :maximum => 64
|
4
|
-
validates_length_of :customer_node_type_name, :allow_nil => true, :maximum => 30
|
5
|
-
validates_length_of :familycompanyname, :allow_nil => true, :maximum => 70
|
6
|
-
validates_length_of :secondfamilyname, :allow_nil => true, :maximum => 50
|
7
|
-
validates_length_of :given_names, :allow_nil => true, :maximum => 80
|
8
|
-
validates_numericality_of :gender_code, :allow_nil => true, :only_integer => true
|
9
|
-
validates_length_of :title, :allow_nil => true, :maximum => 60
|
10
|
-
validates_numericality_of :language_code, :allow_nil => true, :only_integer => true
|
11
|
-
validates_length_of :addressline1, :allow_nil => true, :maximum => 240
|
12
|
-
validates_length_of :addressline2, :allow_nil => true, :maximum => 80
|
13
|
-
validates_length_of :addressline3, :allow_nil => true, :maximum => 80
|
14
|
-
validates_length_of :addressline4, :allow_nil => true, :maximum => 80
|
15
|
-
validates_length_of :post_code, :allow_nil => true, :maximum => 10
|
16
|
-
validates_length_of :city, :allow_nil => true, :maximum => 80
|
17
|
-
validates_length_of :state, :allow_nil => true, :maximum => 80
|
18
|
-
validates_length_of :country, :allow_nil => true, :maximum => 80
|
19
|
-
validates_presence_of :last_update
|
20
|
-
validates_length_of :identification_number, :allow_nil => true, :maximum => 16
|
21
|
-
validates_length_of :vat_number, :allow_nil => true, :maximum => 11
|
22
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
class T2AnumberSwitzerland < ActiveRecord::Base
|
2
|
-
validates_presence_of :service_name
|
3
|
-
validates_length_of :service_name, :allow_nil => false, :maximum => 64
|
4
|
-
validates_presence_of :customer_node_type_name
|
5
|
-
validates_length_of :customer_node_type_name, :allow_nil => false, :maximum => 30
|
6
|
-
validates_presence_of :familycompanyname
|
7
|
-
validates_length_of :familycompanyname, :allow_nil => false, :maximum => 120
|
8
|
-
validates_length_of :given_names, :allow_nil => true, :maximum => 80
|
9
|
-
validates_numericality_of :gender_code, :allow_nil => true, :only_integer => true
|
10
|
-
validates_length_of :title, :allow_nil => true, :maximum => 60
|
11
|
-
validates_presence_of :language_code
|
12
|
-
validates_numericality_of :language_code, :allow_nil => false, :only_integer => true
|
13
|
-
validates_length_of :addresstext, :allow_nil => true, :maximum => 240
|
14
|
-
validates_presence_of :post_code
|
15
|
-
validates_length_of :post_code, :allow_nil => false, :maximum => 10
|
16
|
-
validates_presence_of :city
|
17
|
-
validates_length_of :city, :allow_nil => false, :maximum => 80
|
18
|
-
validates_length_of :state, :allow_nil => true, :maximum => 80
|
19
|
-
validates_presence_of :country
|
20
|
-
validates_length_of :country, :allow_nil => false, :maximum => 80
|
21
|
-
validates_presence_of :last_update
|
22
|
-
validates_length_of :identification_number, :allow_nil => true, :maximum => 16
|
23
|
-
validates_length_of :vat_number, :allow_nil => true, :maximum => 11
|
24
|
-
end
|