ncs_mdes_warehouse 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +7 -0
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/core_quest_air_cleaning.rb +4 -4
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/core_quest_cool.rb +4 -4
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/core_quest_delayed_type.rb +4 -4
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/core_quest_how_apply.rb +4 -4
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/core_quest_rxn_shots.rb +4 -4
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/core_quest_shots_type.rb +4 -4
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/eighteen_mth_mother_saq_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/fourteen_mth_asq_saq.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/link_person_provider.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/participant_verif.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/pb_samp_frame.rb +4 -4
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/pbs_elig_screener.rb +3 -3
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/preg_visit_1_saq_4.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/sixteen_mth_asq_saq.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/thirty_mth_asq_saq.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/tracing_int.rb +8 -8
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/twelve_mth_mother_2.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/twenty_four_mth_saq_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/twenty_mth_asq_saq.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/twenty_seven_mth_asq_saq.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/twenty_two_mth_asq_saq.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/three_point_one/validation_ins_2.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/three_point_one.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/three_point_zero/participant_verif.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/three_point_zero/pb_samp_frame.rb +4 -4
- data/generated_models/ncs_navigator/warehouse/models/three_point_zero/pbs_elig_screener.rb +3 -3
- data/generated_models/ncs_navigator/warehouse/models/three_point_zero/preg_visit_1_saq_4.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/three_point_zero/tracing_int.rb +8 -8
- data/generated_models/ncs_navigator/warehouse/models/three_point_zero/twelve_mth_mother_2.rb +1 -1
- data/lib/ncs_navigator/warehouse/table_modeler/mdes_ext.rb +7 -2
- data/lib/ncs_navigator/warehouse/table_modeler/model_template.rb.erb +1 -1
- data/lib/ncs_navigator/warehouse/version.rb +1 -1
- data/ncs_mdes_warehouse.gemspec +2 -2
- data/spec/ncs_navigator/warehouse/table_modeler_spec.rb +26 -0
- metadata +8 -8
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
NCS Navigator MDES Warehouse History
|
2
2
|
====================================
|
3
3
|
|
4
|
+
0.10.1
|
5
|
+
------
|
6
|
+
|
7
|
+
- Eliminate method name collisions when a generated model would have had
|
8
|
+
both a property and a belongs_to with the same name. (#3184)
|
9
|
+
- Update MDES 3.1 models to 3.1.01.00. (#2750)
|
10
|
+
|
4
11
|
0.10.0
|
5
12
|
------
|
6
13
|
|
data/generated_models/ncs_navigator/warehouse/models/three_point_one/core_quest_air_cleaning.rb
CHANGED
@@ -13,9 +13,9 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
13
13
|
property :psu_id,
|
14
14
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
15
15
|
{ :required => true, :length => 2..8, :set => ["20000054", "20000032", "20000032", "20000032", "20000032", "20000016", "20000039", "20000200", "20000028", "20000063", "20000067", "20000201", "20000202", "20000203", "20000090", "20000083", "20000204", "20000205", "20000042", "20000037", "20000206", "20000040", "20000207", "20000208", "20000209", "20000091", "20000210", "20000069", "20000211", "20000094", "20000212", "20000213", "20000102", "20000214", "20000215", "20000044", "20000216", "20000216", "20000216", "20000030", "20000217", "20000218", "20000218", "20000218", "20000219", "20000220", "20000221", "20000092", "20000222", "20000223", "20000224", "20000225", "20000225", "20000088", "20000087", "20000226", "20000103", "20000227", "20000228", "20000229", "20000230", "20000231", "20000232", "20000025", "20000233", "20000233", "20000233", "20000048", "20000234", "20000235", "20000050", "20000236", "20000035", "20000237", "20000238", "20000239", "20000240", "20000052", "20000241", "20000243", "20000244", "20000245", "20000246", "20000247", "20000248", "20000113", "20000249", "20000250", "20000251", "20000086", "20000252", "20000253", "20000254", "20000255", "20000256", "20000018", "20000058", "20000014", "20000257", "20000258", "20000259", "20000259", "20000098", "20000060", "20000260", "20000260", "20000260", "20000260", "20000261", "20000262", "20000263", "20000097", "20000264", "20000264", "20000265", "20000062", "20000117", "20000266", "20000267", "20000268", "20000269", "20000270", "20000271", "20000272", "20000273", "-4", "20000000"] }
|
16
|
-
belongs_to :
|
17
|
-
'NcsNavigator::Warehouse::Models::ThreePointOne::
|
18
|
-
:child_key => [ :
|
16
|
+
belongs_to :core_quest_housing,
|
17
|
+
'NcsNavigator::Warehouse::Models::ThreePointOne::CoreQuestHousing',
|
18
|
+
:child_key => [ :core_quest_housing_id ], :required => true
|
19
19
|
property :core_quest_air_cleaning_id,
|
20
20
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
21
21
|
{ :key => true, :required => true, :length => 1..36 }
|
@@ -26,7 +26,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
26
26
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
27
27
|
{ :pii => :possible, :length => 0..255 }
|
28
28
|
|
29
|
-
mdes_order :psu_id, :
|
29
|
+
mdes_order :psu_id, :core_quest_housing_id, :core_quest_air_cleaning_id, :air_cleaning, :air_cleaning_oth
|
30
30
|
|
31
31
|
end # class
|
32
32
|
end # module NcsNavigator::Warehouse::Models::ThreePointOne
|
@@ -13,9 +13,9 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
13
13
|
property :psu_id,
|
14
14
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
15
15
|
{ :required => true, :length => 2..8, :set => ["20000054", "20000032", "20000032", "20000032", "20000032", "20000016", "20000039", "20000200", "20000028", "20000063", "20000067", "20000201", "20000202", "20000203", "20000090", "20000083", "20000204", "20000205", "20000042", "20000037", "20000206", "20000040", "20000207", "20000208", "20000209", "20000091", "20000210", "20000069", "20000211", "20000094", "20000212", "20000213", "20000102", "20000214", "20000215", "20000044", "20000216", "20000216", "20000216", "20000030", "20000217", "20000218", "20000218", "20000218", "20000219", "20000220", "20000221", "20000092", "20000222", "20000223", "20000224", "20000225", "20000225", "20000088", "20000087", "20000226", "20000103", "20000227", "20000228", "20000229", "20000230", "20000231", "20000232", "20000025", "20000233", "20000233", "20000233", "20000048", "20000234", "20000235", "20000050", "20000236", "20000035", "20000237", "20000238", "20000239", "20000240", "20000052", "20000241", "20000243", "20000244", "20000245", "20000246", "20000247", "20000248", "20000113", "20000249", "20000250", "20000251", "20000086", "20000252", "20000253", "20000254", "20000255", "20000256", "20000018", "20000058", "20000014", "20000257", "20000258", "20000259", "20000259", "20000098", "20000060", "20000260", "20000260", "20000260", "20000260", "20000261", "20000262", "20000263", "20000097", "20000264", "20000264", "20000265", "20000062", "20000117", "20000266", "20000267", "20000268", "20000269", "20000270", "20000271", "20000272", "20000273", "-4", "20000000"] }
|
16
|
-
belongs_to :
|
17
|
-
'NcsNavigator::Warehouse::Models::ThreePointOne::
|
18
|
-
:child_key => [ :
|
16
|
+
belongs_to :core_quest_housing,
|
17
|
+
'NcsNavigator::Warehouse::Models::ThreePointOne::CoreQuestHousing',
|
18
|
+
:child_key => [ :core_quest_housing_id ], :required => true
|
19
19
|
property :core_quest_cool_id,
|
20
20
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
21
21
|
{ :key => true, :required => true, :length => 1..36 }
|
@@ -23,7 +23,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
23
23
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
24
24
|
{ :required => true, :length => 1..2, :set => ["1", "2", "3", "4", "-7", "-1", "-2", "-3", "-4"] }
|
25
25
|
|
26
|
-
mdes_order :psu_id, :
|
26
|
+
mdes_order :psu_id, :core_quest_housing_id, :core_quest_cool_id, :cool
|
27
27
|
|
28
28
|
end # class
|
29
29
|
end # module NcsNavigator::Warehouse::Models::ThreePointOne
|
data/generated_models/ncs_navigator/warehouse/models/three_point_one/core_quest_delayed_type.rb
CHANGED
@@ -13,9 +13,9 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
13
13
|
property :psu_id,
|
14
14
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
15
15
|
{ :required => true, :length => 2..8, :set => ["20000054", "20000032", "20000032", "20000032", "20000032", "20000016", "20000039", "20000200", "20000028", "20000063", "20000067", "20000201", "20000202", "20000203", "20000090", "20000083", "20000204", "20000205", "20000042", "20000037", "20000206", "20000040", "20000207", "20000208", "20000209", "20000091", "20000210", "20000069", "20000211", "20000094", "20000212", "20000213", "20000102", "20000214", "20000215", "20000044", "20000216", "20000216", "20000216", "20000030", "20000217", "20000218", "20000218", "20000218", "20000219", "20000220", "20000221", "20000092", "20000222", "20000223", "20000224", "20000225", "20000225", "20000088", "20000087", "20000226", "20000103", "20000227", "20000228", "20000229", "20000230", "20000231", "20000232", "20000025", "20000233", "20000233", "20000233", "20000048", "20000234", "20000235", "20000050", "20000236", "20000035", "20000237", "20000238", "20000239", "20000240", "20000052", "20000241", "20000243", "20000244", "20000245", "20000246", "20000247", "20000248", "20000113", "20000249", "20000250", "20000251", "20000086", "20000252", "20000253", "20000254", "20000255", "20000256", "20000018", "20000058", "20000014", "20000257", "20000258", "20000259", "20000259", "20000098", "20000060", "20000260", "20000260", "20000260", "20000260", "20000261", "20000262", "20000263", "20000097", "20000264", "20000264", "20000265", "20000062", "20000117", "20000266", "20000267", "20000268", "20000269", "20000270", "20000271", "20000272", "20000273", "-4", "20000000"] }
|
16
|
-
belongs_to :
|
17
|
-
'NcsNavigator::Warehouse::Models::ThreePointOne::
|
18
|
-
:child_key => [ :
|
16
|
+
belongs_to :core_quest_health_care,
|
17
|
+
'NcsNavigator::Warehouse::Models::ThreePointOne::CoreQuestHealthCare',
|
18
|
+
:child_key => [ :core_quest_health_care_id ], :required => true
|
19
19
|
property :core_quest_delayed_type_id,
|
20
20
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
21
21
|
{ :key => true, :required => true, :length => 1..36 }
|
@@ -26,7 +26,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
26
26
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
27
27
|
{ :pii => :possible, :length => 0..255 }
|
28
28
|
|
29
|
-
mdes_order :psu_id, :
|
29
|
+
mdes_order :psu_id, :core_quest_health_care_id, :core_quest_delayed_type_id, :ins_delayed_type, :ins_delayed_type_oth
|
30
30
|
|
31
31
|
end # class
|
32
32
|
end # module NcsNavigator::Warehouse::Models::ThreePointOne
|
data/generated_models/ncs_navigator/warehouse/models/three_point_one/core_quest_how_apply.rb
CHANGED
@@ -13,9 +13,9 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
13
13
|
property :psu_id,
|
14
14
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
15
15
|
{ :required => true, :length => 2..8, :set => ["20000054", "20000032", "20000032", "20000032", "20000032", "20000016", "20000039", "20000200", "20000028", "20000063", "20000067", "20000201", "20000202", "20000203", "20000090", "20000083", "20000204", "20000205", "20000042", "20000037", "20000206", "20000040", "20000207", "20000208", "20000209", "20000091", "20000210", "20000069", "20000211", "20000094", "20000212", "20000213", "20000102", "20000214", "20000215", "20000044", "20000216", "20000216", "20000216", "20000030", "20000217", "20000218", "20000218", "20000218", "20000219", "20000220", "20000221", "20000092", "20000222", "20000223", "20000224", "20000225", "20000225", "20000088", "20000087", "20000226", "20000103", "20000227", "20000228", "20000229", "20000230", "20000231", "20000232", "20000025", "20000233", "20000233", "20000233", "20000048", "20000234", "20000235", "20000050", "20000236", "20000035", "20000237", "20000238", "20000239", "20000240", "20000052", "20000241", "20000243", "20000244", "20000245", "20000246", "20000247", "20000248", "20000113", "20000249", "20000250", "20000251", "20000086", "20000252", "20000253", "20000254", "20000255", "20000256", "20000018", "20000058", "20000014", "20000257", "20000258", "20000259", "20000259", "20000098", "20000060", "20000260", "20000260", "20000260", "20000260", "20000261", "20000262", "20000263", "20000097", "20000264", "20000264", "20000265", "20000062", "20000117", "20000266", "20000267", "20000268", "20000269", "20000270", "20000271", "20000272", "20000273", "-4", "20000000"] }
|
16
|
-
belongs_to :
|
17
|
-
'NcsNavigator::Warehouse::Models::ThreePointOne::
|
18
|
-
:child_key => [ :
|
16
|
+
belongs_to :core_quest_pesticide,
|
17
|
+
'NcsNavigator::Warehouse::Models::ThreePointOne::CoreQuestPesticide',
|
18
|
+
:child_key => [ :core_quest_pesticide_id ], :required => true
|
19
19
|
property :core_quest_how_apply_id,
|
20
20
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
21
21
|
{ :key => true, :required => true, :length => 1..36 }
|
@@ -26,7 +26,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
26
26
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
27
27
|
{ :pii => :possible, :length => 0..255 }
|
28
28
|
|
29
|
-
mdes_order :psu_id, :
|
29
|
+
mdes_order :psu_id, :core_quest_pesticide_id, :core_quest_how_apply_id, :how_apply, :how_apply_oth
|
30
30
|
|
31
31
|
end # class
|
32
32
|
end # module NcsNavigator::Warehouse::Models::ThreePointOne
|
data/generated_models/ncs_navigator/warehouse/models/three_point_one/core_quest_rxn_shots.rb
CHANGED
@@ -13,9 +13,9 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
13
13
|
property :psu_id,
|
14
14
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
15
15
|
{ :required => true, :length => 2..8, :set => ["20000054", "20000032", "20000032", "20000032", "20000032", "20000016", "20000039", "20000200", "20000028", "20000063", "20000067", "20000201", "20000202", "20000203", "20000090", "20000083", "20000204", "20000205", "20000042", "20000037", "20000206", "20000040", "20000207", "20000208", "20000209", "20000091", "20000210", "20000069", "20000211", "20000094", "20000212", "20000213", "20000102", "20000214", "20000215", "20000044", "20000216", "20000216", "20000216", "20000030", "20000217", "20000218", "20000218", "20000218", "20000219", "20000220", "20000221", "20000092", "20000222", "20000223", "20000224", "20000225", "20000225", "20000088", "20000087", "20000226", "20000103", "20000227", "20000228", "20000229", "20000230", "20000231", "20000232", "20000025", "20000233", "20000233", "20000233", "20000048", "20000234", "20000235", "20000050", "20000236", "20000035", "20000237", "20000238", "20000239", "20000240", "20000052", "20000241", "20000243", "20000244", "20000245", "20000246", "20000247", "20000248", "20000113", "20000249", "20000250", "20000251", "20000086", "20000252", "20000253", "20000254", "20000255", "20000256", "20000018", "20000058", "20000014", "20000257", "20000258", "20000259", "20000259", "20000098", "20000060", "20000260", "20000260", "20000260", "20000260", "20000261", "20000262", "20000263", "20000097", "20000264", "20000264", "20000265", "20000062", "20000117", "20000266", "20000267", "20000268", "20000269", "20000270", "20000271", "20000272", "20000273", "-4", "20000000"] }
|
16
|
-
belongs_to :
|
17
|
-
'NcsNavigator::Warehouse::Models::ThreePointOne::
|
18
|
-
:child_key => [ :
|
16
|
+
belongs_to :core_quest_well_child_care,
|
17
|
+
'NcsNavigator::Warehouse::Models::ThreePointOne::CoreQuestWellChildCare',
|
18
|
+
:child_key => [ :core_quest_well_child_care_id ], :required => true
|
19
19
|
property :core_quest_rxn_shots_id,
|
20
20
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
21
21
|
{ :key => true, :required => true, :length => 1..36 }
|
@@ -26,7 +26,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
26
26
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
27
27
|
{ :pii => :possible, :length => 0..255 }
|
28
28
|
|
29
|
-
mdes_order :psu_id, :
|
29
|
+
mdes_order :psu_id, :core_quest_well_child_care_id, :core_quest_rxn_shots_id, :rxn_shots_type, :rxn_shots_type_oth
|
30
30
|
|
31
31
|
end # class
|
32
32
|
end # module NcsNavigator::Warehouse::Models::ThreePointOne
|
data/generated_models/ncs_navigator/warehouse/models/three_point_one/core_quest_shots_type.rb
CHANGED
@@ -13,9 +13,9 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
13
13
|
property :psu_id,
|
14
14
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
15
15
|
{ :required => true, :length => 2..8, :set => ["20000054", "20000032", "20000032", "20000032", "20000032", "20000016", "20000039", "20000200", "20000028", "20000063", "20000067", "20000201", "20000202", "20000203", "20000090", "20000083", "20000204", "20000205", "20000042", "20000037", "20000206", "20000040", "20000207", "20000208", "20000209", "20000091", "20000210", "20000069", "20000211", "20000094", "20000212", "20000213", "20000102", "20000214", "20000215", "20000044", "20000216", "20000216", "20000216", "20000030", "20000217", "20000218", "20000218", "20000218", "20000219", "20000220", "20000221", "20000092", "20000222", "20000223", "20000224", "20000225", "20000225", "20000088", "20000087", "20000226", "20000103", "20000227", "20000228", "20000229", "20000230", "20000231", "20000232", "20000025", "20000233", "20000233", "20000233", "20000048", "20000234", "20000235", "20000050", "20000236", "20000035", "20000237", "20000238", "20000239", "20000240", "20000052", "20000241", "20000243", "20000244", "20000245", "20000246", "20000247", "20000248", "20000113", "20000249", "20000250", "20000251", "20000086", "20000252", "20000253", "20000254", "20000255", "20000256", "20000018", "20000058", "20000014", "20000257", "20000258", "20000259", "20000259", "20000098", "20000060", "20000260", "20000260", "20000260", "20000260", "20000261", "20000262", "20000263", "20000097", "20000264", "20000264", "20000265", "20000062", "20000117", "20000266", "20000267", "20000268", "20000269", "20000270", "20000271", "20000272", "20000273", "-4", "20000000"] }
|
16
|
-
belongs_to :
|
17
|
-
'NcsNavigator::Warehouse::Models::ThreePointOne::
|
18
|
-
:child_key => [ :
|
16
|
+
belongs_to :core_quest_well_child_care_vis,
|
17
|
+
'NcsNavigator::Warehouse::Models::ThreePointOne::CoreQuestWellChildCareVis',
|
18
|
+
:child_key => [ :core_quest_well_child_care_vis_id ], :required => true
|
19
19
|
property :core_quest_shots_type_id,
|
20
20
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
21
21
|
{ :key => true, :required => true, :length => 1..36 }
|
@@ -26,7 +26,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
26
26
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
27
27
|
{ :pii => :possible, :length => 0..255 }
|
28
28
|
|
29
|
-
mdes_order :psu_id, :
|
29
|
+
mdes_order :psu_id, :core_quest_well_child_care_vis_id, :core_quest_shots_type_id, :shots_type, :shots_type_oth
|
30
30
|
|
31
31
|
end # class
|
32
32
|
end # module NcsNavigator::Warehouse::Models::ThreePointOne
|
data/generated_models/ncs_navigator/warehouse/models/three_point_one/eighteen_mth_mother_saq_2.rb
CHANGED
@@ -112,7 +112,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
112
112
|
property :asq18_country,
|
113
113
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
114
114
|
{ :pii => :possible, :length => 0..50 }
|
115
|
-
belongs_to :
|
115
|
+
belongs_to :home_phone_record,
|
116
116
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
117
117
|
:child_key => [ :home_phone_id ], :required => false
|
118
118
|
property :home_phone,
|
@@ -121,7 +121,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
121
121
|
property :other_phone,
|
122
122
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
123
123
|
{ :pii => true, :length => 0..10 }
|
124
|
-
belongs_to :
|
124
|
+
belongs_to :email_record,
|
125
125
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Email',
|
126
126
|
:child_key => [ :email_id ], :required => false
|
127
127
|
property :email,
|
data/generated_models/ncs_navigator/warehouse/models/three_point_one/fourteen_mth_asq_saq.rb
CHANGED
@@ -112,7 +112,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
112
112
|
property :asq14_country,
|
113
113
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
114
114
|
{ :pii => :possible, :length => 0..50 }
|
115
|
-
belongs_to :
|
115
|
+
belongs_to :home_phone_record,
|
116
116
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
117
117
|
:child_key => [ :home_phone_id ], :required => false
|
118
118
|
property :home_phone,
|
@@ -121,7 +121,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
121
121
|
property :other_phone,
|
122
122
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
123
123
|
{ :pii => true, :length => 0..10 }
|
124
|
-
belongs_to :
|
124
|
+
belongs_to :email_record,
|
125
125
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Email',
|
126
126
|
:child_key => [ :email_id ], :required => false
|
127
127
|
property :email,
|
data/generated_models/ncs_navigator/warehouse/models/three_point_one/link_person_provider.rb
CHANGED
@@ -27,7 +27,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
27
27
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-4"] }
|
28
28
|
property :prov_intro_outcome,
|
29
29
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
30
|
-
{ :required => true, :length => 1..2, :set => ["1", "2", "3", "4", "-5", "-7", "-4"] }
|
30
|
+
{ :required => true, :length => 1..2, :set => ["1", "2", "3", "4", "5", "-5", "-7", "-4"] }
|
31
31
|
property :prov_intro_outcome_oth,
|
32
32
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
33
33
|
{ :pii => :possible, :length => 0..255 }
|
@@ -166,7 +166,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
166
166
|
property :c_zip4,
|
167
167
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
168
168
|
{ :pii => :possible, :length => 0..4 }
|
169
|
-
belongs_to :
|
169
|
+
belongs_to :pa_phone_record,
|
170
170
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
171
171
|
:child_key => [ :pa_phone_id ], :required => false
|
172
172
|
property :pa_phone,
|
@@ -202,7 +202,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
202
202
|
property :sa_phone_confirm,
|
203
203
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
204
204
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-3", "-4"] }
|
205
|
-
belongs_to :
|
205
|
+
belongs_to :sa_phone_record,
|
206
206
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
207
207
|
:child_key => [ :sa_phone_id ], :required => false
|
208
208
|
property :sa_phone,
|
@@ -112,13 +112,13 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
112
112
|
property :contact_zip4,
|
113
113
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
114
114
|
{ :pii => :possible, :length => 0..4 }
|
115
|
-
belongs_to :
|
115
|
+
belongs_to :contact_email_record,
|
116
116
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Email',
|
117
117
|
:child_key => [ :contact_email_id ], :required => false
|
118
118
|
property :contact_email,
|
119
119
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
120
120
|
{ :pii => true, :length => 0..100 }
|
121
|
-
belongs_to :
|
121
|
+
belongs_to :contact_phone_num_record,
|
122
122
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
123
123
|
:child_key => [ :contact_phone_num_id ], :required => false
|
124
124
|
property :contact_phone_num,
|
@@ -265,13 +265,13 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
265
265
|
property :contact_zip4_larger,
|
266
266
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
267
267
|
{ :pii => :possible, :length => 0..4 }
|
268
|
-
belongs_to :
|
268
|
+
belongs_to :contact_email_larger_record,
|
269
269
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Email',
|
270
270
|
:child_key => [ :contact_email_larger_id ], :required => false
|
271
271
|
property :contact_email_larger,
|
272
272
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
273
273
|
{ :pii => true, :length => 0..100 }
|
274
|
-
belongs_to :
|
274
|
+
belongs_to :contact_phone_num_larger_record,
|
275
275
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
276
276
|
:child_key => [ :contact_phone_num_larger_id ], :required => false
|
277
277
|
property :contact_phone_num_larger,
|
@@ -64,7 +64,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
64
64
|
property :female_1,
|
65
65
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
66
66
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-3", "-4"] }
|
67
|
-
belongs_to :
|
67
|
+
belongs_to :r_phone_1_record,
|
68
68
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
69
69
|
:child_key => [ :r_phone_1_id ], :required => false
|
70
70
|
property :r_phone_1,
|
@@ -88,7 +88,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
88
88
|
property :r_other_phone,
|
89
89
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
90
90
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-3", "-4"] }
|
91
|
-
belongs_to :
|
91
|
+
belongs_to :r_phone_2_record,
|
92
92
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
93
93
|
:child_key => [ :r_phone_2_id ], :required => false
|
94
94
|
property :r_phone_2,
|
@@ -109,7 +109,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
109
109
|
property :best_ttc2_3,
|
110
110
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
111
111
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-3", "-4"] }
|
112
|
-
belongs_to :
|
112
|
+
belongs_to :r_email_record,
|
113
113
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Email',
|
114
114
|
:child_key => [ :r_email_id ], :required => false
|
115
115
|
property :r_email,
|
@@ -100,7 +100,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
100
100
|
property :f_zip4_2,
|
101
101
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
102
102
|
{ :pii => :possible, :length => 0..4 }
|
103
|
-
belongs_to :
|
103
|
+
belongs_to :f_phone_record,
|
104
104
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
105
105
|
:child_key => [ :f_phone_id ], :required => false
|
106
106
|
property :f_phone,
|
@@ -112,7 +112,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
112
112
|
property :asq16_country,
|
113
113
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
114
114
|
{ :pii => :possible, :length => 0..50 }
|
115
|
-
belongs_to :
|
115
|
+
belongs_to :home_phone_record,
|
116
116
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
117
117
|
:child_key => [ :home_phone_id ], :required => false
|
118
118
|
property :home_phone,
|
@@ -121,7 +121,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
121
121
|
property :other_phone,
|
122
122
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
123
123
|
{ :pii => true, :length => 0..10 }
|
124
|
-
belongs_to :
|
124
|
+
belongs_to :email_record,
|
125
125
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Email',
|
126
126
|
:child_key => [ :email_id ], :required => false
|
127
127
|
property :email,
|
@@ -109,7 +109,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
109
109
|
property :asq30_country,
|
110
110
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
111
111
|
{ :pii => :possible, :length => 0..50 }
|
112
|
-
belongs_to :
|
112
|
+
belongs_to :home_phone_record,
|
113
113
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
114
114
|
:child_key => [ :home_phone_id ], :required => false
|
115
115
|
property :home_phone,
|
@@ -118,7 +118,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
118
118
|
property :other_phone,
|
119
119
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
120
120
|
{ :pii => true, :length => 0..10 }
|
121
|
-
belongs_to :
|
121
|
+
belongs_to :email_record,
|
122
122
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Email',
|
123
123
|
:child_key => [ :email_id ], :required => false
|
124
124
|
property :email,
|
@@ -121,7 +121,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
121
121
|
property :home_phone_confirm,
|
122
122
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
123
123
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-7", "-3", "-4"] }
|
124
|
-
belongs_to :
|
124
|
+
belongs_to :home_phone_record,
|
125
125
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
126
126
|
:child_key => [ :home_phone_id ], :required => false
|
127
127
|
property :home_phone,
|
@@ -130,7 +130,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
130
130
|
property :cell_phone_confirm,
|
131
131
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
132
132
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-7", "-3", "-4"] }
|
133
|
-
belongs_to :
|
133
|
+
belongs_to :cell_phone_record,
|
134
134
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
135
135
|
:child_key => [ :cell_phone_id ], :required => false
|
136
136
|
property :cell_phone,
|
@@ -148,7 +148,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
148
148
|
property :email_confirm,
|
149
149
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
150
150
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-7", "-3", "-4"] }
|
151
|
-
belongs_to :
|
151
|
+
belongs_to :email_record,
|
152
152
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Email',
|
153
153
|
:child_key => [ :email_id ], :required => false
|
154
154
|
property :email,
|
@@ -220,7 +220,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
220
220
|
property :contact_other_ph_1,
|
221
221
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
222
222
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-3", "-4"] }
|
223
|
-
belongs_to :
|
223
|
+
belongs_to :contact_phone_2_1_record,
|
224
224
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
225
225
|
:child_key => [ :contact_phone_2_1_id ], :required => false
|
226
226
|
property :contact_phone_2_1,
|
@@ -268,7 +268,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
268
268
|
property :c_zip4_2,
|
269
269
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
270
270
|
{ :pii => :possible, :length => 0..4 }
|
271
|
-
belongs_to :
|
271
|
+
belongs_to :contact_phone_2_record,
|
272
272
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
273
273
|
:child_key => [ :contact_phone_2_id ], :required => false
|
274
274
|
property :contact_phone_2,
|
@@ -283,7 +283,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
283
283
|
property :contact_other_ph_2,
|
284
284
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
285
285
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-3", "-4"] }
|
286
|
-
belongs_to :
|
286
|
+
belongs_to :contact_phone_2_2_record,
|
287
287
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
288
288
|
:child_key => [ :contact_phone_2_2_id ], :required => false
|
289
289
|
property :contact_phone_2_2,
|
@@ -331,7 +331,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
331
331
|
property :c_zip4_3,
|
332
332
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
333
333
|
{ :pii => :possible, :length => 0..4 }
|
334
|
-
belongs_to :
|
334
|
+
belongs_to :contact_phone_3_record,
|
335
335
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
336
336
|
:child_key => [ :contact_phone_3_id ], :required => false
|
337
337
|
property :contact_phone_3,
|
@@ -346,7 +346,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
346
346
|
property :contact_other_ph_3,
|
347
347
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
348
348
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-3", "-4"] }
|
349
|
-
belongs_to :
|
349
|
+
belongs_to :contact_phone_2_3_record,
|
350
350
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
351
351
|
:child_key => [ :contact_phone_2_3_id ], :required => false
|
352
352
|
property :contact_phone_2_3,
|
@@ -184,7 +184,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
184
184
|
property :email_3,
|
185
185
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
186
186
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-3", "-4"] }
|
187
|
-
belongs_to :
|
187
|
+
belongs_to :email_record,
|
188
188
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Email',
|
189
189
|
:child_key => [ :email_id ], :required => false
|
190
190
|
property :email,
|
data/generated_models/ncs_navigator/warehouse/models/three_point_one/twenty_four_mth_saq_2.rb
CHANGED
@@ -109,7 +109,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
109
109
|
property :asq24_country,
|
110
110
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
111
111
|
{ :pii => :possible, :length => 0..50 }
|
112
|
-
belongs_to :
|
112
|
+
belongs_to :home_phone_record,
|
113
113
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
114
114
|
:child_key => [ :home_phone_id ], :required => false
|
115
115
|
property :home_phone,
|
@@ -118,7 +118,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
118
118
|
property :other_phone,
|
119
119
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
120
120
|
{ :pii => true, :length => 0..10 }
|
121
|
-
belongs_to :
|
121
|
+
belongs_to :email_record,
|
122
122
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Email',
|
123
123
|
:child_key => [ :email_id ], :required => false
|
124
124
|
property :email,
|
@@ -112,7 +112,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
112
112
|
property :asq20_country,
|
113
113
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
114
114
|
{ :pii => :possible, :length => 0..50 }
|
115
|
-
belongs_to :
|
115
|
+
belongs_to :home_phone_record,
|
116
116
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
117
117
|
:child_key => [ :home_phone_id ], :required => false
|
118
118
|
property :home_phone,
|
@@ -121,7 +121,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
121
121
|
property :other_phone,
|
122
122
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
123
123
|
{ :pii => true, :length => 0..10 }
|
124
|
-
belongs_to :
|
124
|
+
belongs_to :email_record,
|
125
125
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Email',
|
126
126
|
:child_key => [ :email_id ], :required => false
|
127
127
|
property :email,
|
data/generated_models/ncs_navigator/warehouse/models/three_point_one/twenty_seven_mth_asq_saq.rb
CHANGED
@@ -109,7 +109,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
109
109
|
property :asq27_country,
|
110
110
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
111
111
|
{ :pii => :possible, :length => 0..50 }
|
112
|
-
belongs_to :
|
112
|
+
belongs_to :home_phone_record,
|
113
113
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
114
114
|
:child_key => [ :home_phone_id ], :required => false
|
115
115
|
property :home_phone,
|
@@ -118,7 +118,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
118
118
|
property :other_phone,
|
119
119
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
120
120
|
{ :pii => true, :length => 0..10 }
|
121
|
-
belongs_to :
|
121
|
+
belongs_to :email_record,
|
122
122
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Email',
|
123
123
|
:child_key => [ :email_id ], :required => false
|
124
124
|
property :email,
|
data/generated_models/ncs_navigator/warehouse/models/three_point_one/twenty_two_mth_asq_saq.rb
CHANGED
@@ -112,7 +112,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
112
112
|
property :asq22_country,
|
113
113
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
114
114
|
{ :pii => :possible, :length => 0..50 }
|
115
|
-
belongs_to :
|
115
|
+
belongs_to :home_phone_record,
|
116
116
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
117
117
|
:child_key => [ :home_phone_id ], :required => false
|
118
118
|
property :home_phone,
|
@@ -121,7 +121,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
121
121
|
property :other_phone,
|
122
122
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
123
123
|
{ :pii => true, :length => 0..10 }
|
124
|
-
belongs_to :
|
124
|
+
belongs_to :email_record,
|
125
125
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Email',
|
126
126
|
:child_key => [ :email_id ], :required => false
|
127
127
|
property :email,
|
@@ -73,7 +73,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
|
|
73
73
|
property :phone,
|
74
74
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
75
75
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-3", "-4"] }
|
76
|
-
belongs_to :
|
76
|
+
belongs_to :phone_nbr_record,
|
77
77
|
'NcsNavigator::Warehouse::Models::ThreePointOne::Telephone',
|
78
78
|
:child_key => [ :phone_nbr_id ], :required => false
|
79
79
|
property :phone_nbr,
|
@@ -166,7 +166,7 @@ module NcsNavigator::Warehouse::Models::ThreePointZero
|
|
166
166
|
property :c_zip4,
|
167
167
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
168
168
|
{ :pii => :possible, :length => 0..4 }
|
169
|
-
belongs_to :
|
169
|
+
belongs_to :pa_phone_record,
|
170
170
|
'NcsNavigator::Warehouse::Models::ThreePointZero::Telephone',
|
171
171
|
:child_key => [ :pa_phone_id ], :required => false
|
172
172
|
property :pa_phone,
|
@@ -202,7 +202,7 @@ module NcsNavigator::Warehouse::Models::ThreePointZero
|
|
202
202
|
property :sa_phone_confirm,
|
203
203
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
204
204
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-3", "-4"] }
|
205
|
-
belongs_to :
|
205
|
+
belongs_to :sa_phone_record,
|
206
206
|
'NcsNavigator::Warehouse::Models::ThreePointZero::Telephone',
|
207
207
|
:child_key => [ :sa_phone_id ], :required => false
|
208
208
|
property :sa_phone,
|
@@ -112,13 +112,13 @@ module NcsNavigator::Warehouse::Models::ThreePointZero
|
|
112
112
|
property :contact_zip4,
|
113
113
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
114
114
|
{ :pii => :possible, :length => 0..4 }
|
115
|
-
belongs_to :
|
115
|
+
belongs_to :contact_email_record,
|
116
116
|
'NcsNavigator::Warehouse::Models::ThreePointZero::Email',
|
117
117
|
:child_key => [ :contact_email_id ], :required => false
|
118
118
|
property :contact_email,
|
119
119
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
120
120
|
{ :pii => true, :length => 0..100 }
|
121
|
-
belongs_to :
|
121
|
+
belongs_to :contact_phone_num_record,
|
122
122
|
'NcsNavigator::Warehouse::Models::ThreePointZero::Telephone',
|
123
123
|
:child_key => [ :contact_phone_num_id ], :required => false
|
124
124
|
property :contact_phone_num,
|
@@ -265,13 +265,13 @@ module NcsNavigator::Warehouse::Models::ThreePointZero
|
|
265
265
|
property :contact_zip4_larger,
|
266
266
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
267
267
|
{ :pii => :possible, :length => 0..4 }
|
268
|
-
belongs_to :
|
268
|
+
belongs_to :contact_email_larger_record,
|
269
269
|
'NcsNavigator::Warehouse::Models::ThreePointZero::Email',
|
270
270
|
:child_key => [ :contact_email_larger_id ], :required => false
|
271
271
|
property :contact_email_larger,
|
272
272
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
273
273
|
{ :pii => true, :length => 0..100 }
|
274
|
-
belongs_to :
|
274
|
+
belongs_to :contact_phone_num_larger_record,
|
275
275
|
'NcsNavigator::Warehouse::Models::ThreePointZero::Telephone',
|
276
276
|
:child_key => [ :contact_phone_num_larger_id ], :required => false
|
277
277
|
property :contact_phone_num_larger,
|
@@ -64,7 +64,7 @@ module NcsNavigator::Warehouse::Models::ThreePointZero
|
|
64
64
|
property :female_1,
|
65
65
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
66
66
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-3", "-4"] }
|
67
|
-
belongs_to :
|
67
|
+
belongs_to :r_phone_1_record,
|
68
68
|
'NcsNavigator::Warehouse::Models::ThreePointZero::Telephone',
|
69
69
|
:child_key => [ :r_phone_1_id ], :required => false
|
70
70
|
property :r_phone_1,
|
@@ -88,7 +88,7 @@ module NcsNavigator::Warehouse::Models::ThreePointZero
|
|
88
88
|
property :r_other_phone,
|
89
89
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
90
90
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-3", "-4"] }
|
91
|
-
belongs_to :
|
91
|
+
belongs_to :r_phone_2_record,
|
92
92
|
'NcsNavigator::Warehouse::Models::ThreePointZero::Telephone',
|
93
93
|
:child_key => [ :r_phone_2_id ], :required => false
|
94
94
|
property :r_phone_2,
|
@@ -109,7 +109,7 @@ module NcsNavigator::Warehouse::Models::ThreePointZero
|
|
109
109
|
property :best_ttc2_3,
|
110
110
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
111
111
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-3", "-4"] }
|
112
|
-
belongs_to :
|
112
|
+
belongs_to :r_email_record,
|
113
113
|
'NcsNavigator::Warehouse::Models::ThreePointZero::Email',
|
114
114
|
:child_key => [ :r_email_id ], :required => false
|
115
115
|
property :r_email,
|
@@ -100,7 +100,7 @@ module NcsNavigator::Warehouse::Models::ThreePointZero
|
|
100
100
|
property :f_zip4_2,
|
101
101
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
102
102
|
{ :pii => :possible, :length => 0..4 }
|
103
|
-
belongs_to :
|
103
|
+
belongs_to :f_phone_record,
|
104
104
|
'NcsNavigator::Warehouse::Models::ThreePointZero::Telephone',
|
105
105
|
:child_key => [ :f_phone_id ], :required => false
|
106
106
|
property :f_phone,
|
@@ -121,7 +121,7 @@ module NcsNavigator::Warehouse::Models::ThreePointZero
|
|
121
121
|
property :home_phone_confirm,
|
122
122
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
123
123
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-7", "-3", "-4"] }
|
124
|
-
belongs_to :
|
124
|
+
belongs_to :home_phone_record,
|
125
125
|
'NcsNavigator::Warehouse::Models::ThreePointZero::Telephone',
|
126
126
|
:child_key => [ :home_phone_id ], :required => false
|
127
127
|
property :home_phone,
|
@@ -130,7 +130,7 @@ module NcsNavigator::Warehouse::Models::ThreePointZero
|
|
130
130
|
property :cell_phone_confirm,
|
131
131
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
132
132
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-7", "-3", "-4"] }
|
133
|
-
belongs_to :
|
133
|
+
belongs_to :cell_phone_record,
|
134
134
|
'NcsNavigator::Warehouse::Models::ThreePointZero::Telephone',
|
135
135
|
:child_key => [ :cell_phone_id ], :required => false
|
136
136
|
property :cell_phone,
|
@@ -148,7 +148,7 @@ module NcsNavigator::Warehouse::Models::ThreePointZero
|
|
148
148
|
property :email_confirm,
|
149
149
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
150
150
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-7", "-3", "-4"] }
|
151
|
-
belongs_to :
|
151
|
+
belongs_to :email_record,
|
152
152
|
'NcsNavigator::Warehouse::Models::ThreePointZero::Email',
|
153
153
|
:child_key => [ :email_id ], :required => false
|
154
154
|
property :email,
|
@@ -220,7 +220,7 @@ module NcsNavigator::Warehouse::Models::ThreePointZero
|
|
220
220
|
property :contact_other_ph_1,
|
221
221
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
222
222
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-3", "-4"] }
|
223
|
-
belongs_to :
|
223
|
+
belongs_to :contact_phone_2_1_record,
|
224
224
|
'NcsNavigator::Warehouse::Models::ThreePointZero::Telephone',
|
225
225
|
:child_key => [ :contact_phone_2_1_id ], :required => false
|
226
226
|
property :contact_phone_2_1,
|
@@ -268,7 +268,7 @@ module NcsNavigator::Warehouse::Models::ThreePointZero
|
|
268
268
|
property :c_zip4_2,
|
269
269
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
270
270
|
{ :pii => :possible, :length => 0..4 }
|
271
|
-
belongs_to :
|
271
|
+
belongs_to :contact_phone_2_record,
|
272
272
|
'NcsNavigator::Warehouse::Models::ThreePointZero::Telephone',
|
273
273
|
:child_key => [ :contact_phone_2_id ], :required => false
|
274
274
|
property :contact_phone_2,
|
@@ -283,7 +283,7 @@ module NcsNavigator::Warehouse::Models::ThreePointZero
|
|
283
283
|
property :contact_other_ph_2,
|
284
284
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
285
285
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-3", "-4"] }
|
286
|
-
belongs_to :
|
286
|
+
belongs_to :contact_phone_2_2_record,
|
287
287
|
'NcsNavigator::Warehouse::Models::ThreePointZero::Telephone',
|
288
288
|
:child_key => [ :contact_phone_2_2_id ], :required => false
|
289
289
|
property :contact_phone_2_2,
|
@@ -331,7 +331,7 @@ module NcsNavigator::Warehouse::Models::ThreePointZero
|
|
331
331
|
property :c_zip4_3,
|
332
332
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
333
333
|
{ :pii => :possible, :length => 0..4 }
|
334
|
-
belongs_to :
|
334
|
+
belongs_to :contact_phone_3_record,
|
335
335
|
'NcsNavigator::Warehouse::Models::ThreePointZero::Telephone',
|
336
336
|
:child_key => [ :contact_phone_3_id ], :required => false
|
337
337
|
property :contact_phone_3,
|
@@ -346,7 +346,7 @@ module NcsNavigator::Warehouse::Models::ThreePointZero
|
|
346
346
|
property :contact_other_ph_3,
|
347
347
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
348
348
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-3", "-4"] }
|
349
|
-
belongs_to :
|
349
|
+
belongs_to :contact_phone_2_3_record,
|
350
350
|
'NcsNavigator::Warehouse::Models::ThreePointZero::Telephone',
|
351
351
|
:child_key => [ :contact_phone_2_3_id ], :required => false
|
352
352
|
property :contact_phone_2_3,
|
data/generated_models/ncs_navigator/warehouse/models/three_point_zero/twelve_mth_mother_2.rb
CHANGED
@@ -184,7 +184,7 @@ module NcsNavigator::Warehouse::Models::ThreePointZero
|
|
184
184
|
property :email_3,
|
185
185
|
NcsNavigator::Warehouse::DataMapper::NcsString,
|
186
186
|
{ :required => true, :length => 1..2, :set => ["1", "2", "-1", "-2", "-3", "-4"] }
|
187
|
-
belongs_to :
|
187
|
+
belongs_to :email_record,
|
188
188
|
'NcsNavigator::Warehouse::Models::ThreePointZero::Email',
|
189
189
|
:child_key => [ :email_id ], :required => false
|
190
190
|
property :email,
|
@@ -79,10 +79,15 @@ module NcsNavigator
|
|
79
79
|
].compact
|
80
80
|
end
|
81
81
|
|
82
|
-
def wh_reference_name
|
82
|
+
def wh_reference_name(in_table)
|
83
83
|
fail 'Does not apply' unless self.table_reference
|
84
84
|
if self.name =~ /_id$/
|
85
|
-
self.name.sub(/_id$/, '')
|
85
|
+
possible = self.name.sub(/_id$/, '')
|
86
|
+
if in_table.variables.detect { |other_v| other_v.name == possible }
|
87
|
+
"#{possible}_record"
|
88
|
+
else
|
89
|
+
possible
|
90
|
+
end
|
86
91
|
else
|
87
92
|
self.name + '_record'
|
88
93
|
end
|
@@ -12,7 +12,7 @@ module <%= module_name %>
|
|
12
12
|
|
13
13
|
<% t.wh_variables.each do |v| -%>
|
14
14
|
<% if v.table_reference -%>
|
15
|
-
belongs_to :<%= v.wh_reference_name %>,
|
15
|
+
belongs_to :<%= v.wh_reference_name(t) %>,
|
16
16
|
'<%= v.table_reference.wh_model_name(module_name) %>',
|
17
17
|
:child_key => [ :<%= v.name %> ], :required => <%= !!v.required %>
|
18
18
|
<% else -%>
|
data/ncs_mdes_warehouse.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
16
16
|
s.require_paths = ["lib", "generated_models"]
|
17
17
|
|
18
|
-
s.add_dependency 'ncs_mdes', '~> 0.
|
18
|
+
s.add_dependency 'ncs_mdes', '~> 0.11'
|
19
19
|
s.add_dependency 'ncs_navigator_configuration', '~> 0.2'
|
20
20
|
|
21
21
|
# AS 3.2.4-3.2.6 break DataMapper due to https://github.com/rails/rails/pull/6857
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
|
|
28
28
|
s.add_dependency 'childprocess', '~> 0.2.3'
|
29
29
|
s.add_dependency 'json', '~> 1.6'
|
30
30
|
|
31
|
-
s.add_dependency 'nokogiri', '~> 1.5.
|
31
|
+
s.add_dependency 'nokogiri', '~> 1.5.6'
|
32
32
|
s.add_dependency 'builder', '>= 2.1.2'
|
33
33
|
|
34
34
|
%w(
|
@@ -462,6 +462,7 @@ end
|
|
462
462
|
end
|
463
463
|
|
464
464
|
let(:child_variable_name) { 'some_tree_id' }
|
465
|
+
let(:additional_variables) { [] }
|
465
466
|
|
466
467
|
before do
|
467
468
|
table.variables << NcsNavigator::Mdes::Variable.new(child_variable_name).tap do |v|
|
@@ -471,6 +472,7 @@ end
|
|
471
472
|
v.required = false
|
472
473
|
end
|
473
474
|
end
|
475
|
+
table.variables.concat(additional_variables)
|
474
476
|
tables << parent_table
|
475
477
|
|
476
478
|
subject.load!
|
@@ -528,6 +530,30 @@ end
|
|
528
530
|
model_class.instance_methods.collect(&:to_s).should_not include('some_tree_id')
|
529
531
|
end
|
530
532
|
end
|
533
|
+
|
534
|
+
describe 'when there is a different variable that matches the child key without the "_id" suffix' do
|
535
|
+
let(:additional_variables) {
|
536
|
+
[
|
537
|
+
NcsNavigator::Mdes::Variable.new('some_tree').tap do |v|
|
538
|
+
v.type = NcsNavigator::Mdes::VariableType.new.tap do |vt|
|
539
|
+
vt.base_type = :string
|
540
|
+
end
|
541
|
+
end
|
542
|
+
]
|
543
|
+
}
|
544
|
+
|
545
|
+
it 'names the relationship "*_record"' do
|
546
|
+
model_class.relationships['some_tree_record'].tap do |rel|
|
547
|
+
rel.should_not be_nil
|
548
|
+
rel.options[:child_key].should == [:some_tree_id]
|
549
|
+
end
|
550
|
+
end
|
551
|
+
|
552
|
+
it 'has the other variable accessor' do
|
553
|
+
model_class.properties['some_tree'].class.
|
554
|
+
should == NcsNavigator::Warehouse::DataMapper::NcsText
|
555
|
+
end
|
556
|
+
end
|
531
557
|
end
|
532
558
|
end
|
533
559
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ncs_mdes_warehouse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ncs_mdes
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '0.
|
21
|
+
version: '0.11'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.11'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: ncs_navigator_configuration
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,7 +164,7 @@ dependencies:
|
|
164
164
|
requirements:
|
165
165
|
- - ~>
|
166
166
|
- !ruby/object:Gem::Version
|
167
|
-
version: 1.5.
|
167
|
+
version: 1.5.6
|
168
168
|
type: :runtime
|
169
169
|
prerelease: false
|
170
170
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -172,7 +172,7 @@ dependencies:
|
|
172
172
|
requirements:
|
173
173
|
- - ~>
|
174
174
|
- !ruby/object:Gem::Version
|
175
|
-
version: 1.5.
|
175
|
+
version: 1.5.6
|
176
176
|
- !ruby/object:Gem::Dependency
|
177
177
|
name: builder
|
178
178
|
requirement: !ruby/object:Gem::Requirement
|
@@ -2399,7 +2399,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
2399
2399
|
version: '0'
|
2400
2400
|
segments:
|
2401
2401
|
- 0
|
2402
|
-
hash:
|
2402
|
+
hash: 755124740488367604
|
2403
2403
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
2404
2404
|
none: false
|
2405
2405
|
requirements:
|
@@ -2408,7 +2408,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
2408
2408
|
version: '0'
|
2409
2409
|
segments:
|
2410
2410
|
- 0
|
2411
|
-
hash:
|
2411
|
+
hash: 755124740488367604
|
2412
2412
|
requirements: []
|
2413
2413
|
rubyforge_project:
|
2414
2414
|
rubygems_version: 1.8.24
|