diff --git a/db/data/20241127134254_set_missing_plan_type_on_approved_claims.rb b/db/data/20241127134254_set_missing_plan_type_on_approved_claims.rb new file mode 100644 index 0000000000..52d7f03aa1 --- /dev/null +++ b/db/data/20241127134254_set_missing_plan_type_on_approved_claims.rb @@ -0,0 +1,581 @@ +# Run me with `rails runner db/data/20241127134254_set_missing_plan_type_on_approved_claims.rb` + +# Put your Ruby code here +[ + ["K5MAFB6Y", 2], + ["F4YBF5B9", 2], + ["6S6MLPQS", 1], + ["FUWLGERM", 2], + ["H6QAPMLZ", 2], + ["NHZ55KXH", 2], + ["FQ8D6XHW", 2], + ["Q5EUFHDW", 2], + ["6QXGHUC4", 2], + ["ZER45VQW", 1], + ["C7QKWKZW", 1], + ["HXVRR3V7", 2], + ["DER6PFDP", 2], + ["R9EMSFH8", 1], + ["AKUB6L9G", 2], + ["ZM6P6AGX", 1], + ["52R2ULYJ", 1], + ["GV6XGNPX", 1], + ["4S82CX55", 1], + ["2XDW6XV8", 2], + ["ADLEKJFJ", 2], + ["7MNFNSUN", 2], + ["WDMH6D6X", 1], + ["FJPHAGXX", 2], + ["YYY8YD8T", 2], + ["L4WETQHN", 2], + ["FZMP9ZWX", 2], + ["WVGRS9F6", 2], + ["SB3LEPML", 2], + ["U87N4XMV", 2], + ["5S3YTTHL", 2], + ["5USMHC6Z", 2], + ["G5HPXN2V", 2], + ["3XYXVPJT", 1], + ["FGK4WWR6", 1], + ["8KDY5A93", 2], + ["7FTFUQQH", 2], + ["AAF59NRX", 2], + ["3AELRJCE", 2], + ["9KSVDLUW", 2], + ["YMBCD3NW", 1], + ["NADKDGGJ", 2], + ["STNTCX7R", 2], + ["HC93VKJK", 2], + ["B3KAPWPU", 2], + ["XYFEQKPW", 2], + ["XQ89SMCS", 2], + ["XRBYDW3K", 1], + ["8QNZL5V8", 1], + ["9VRLNJ6D", 2], + ["ZL433KK9", 3], + ["RPWGQWJQ", 2], + ["ZCAH8E4G", 1], + ["K5GXDHWY", 2], + ["CVQKDANE", 1], + ["23U6U557", 2], + ["2LBJVRHM", 1], + ["XQZRPBQJ", 2], + ["2Q8W4YRN", 1], + ["3SMZ9WXF", 2], + ["JXVLKFJ2", 2], + ["D6JFDM2T", 1], + ["FN4SA2A6", 2], + ["V2HMGX2M", 1], + ["ASSBVF79", 2], + ["F3NK5G9K", 2], + ["PVST6DGQ", 2], + ["APQBS2AM", 2], + ["TD6ZWEJG", 2], + ["4F73SYWV", 4], + ["S6W83P97", 2], + ["2434293L", 2], + ["2USR585P", 2], + ["WQ7CAVTL", 2], + ["SM3EP5DV", 2], + ["EM7F58LK", 2], + ["UQ4NVM7K", 2], + ["6NBBJGA9", 2], + ["S3EJXNW2", 2], + ["GBR596RH", 2], + ["4ZBT7KPL", 2], + ["A3WQEEJE", 2], + ["7PPUL8B6", 2], + ["4GN252FT", 1], + ["4XSCFQBB", 2], + ["GE4973NJ", 1], + ["PPA7DC62", 2], + ["64ARDLGQ", 2], + ["KK9FA48L", 2], + ["VD2YQ76B", 2], + ["3STLUT6A", 2], + ["MTGUM6UV", 1], + ["9V7GNHGR", 2], + ["4XHUSFMZ", 2], + ["Z2WLTW47", 1], + ["VJMGTMXN", 2], + ["YYA45YPC", 2], + ["MZG7GXPJ", 1], + ["RVN94DEA", 2], + ["GWDXNHY6", 1], + ["JQ3JZXJ7", 1], + ["6KVZBJ3P", 2], + ["847Z4CVY", 2], + ["NE9E9HW2", 1], + ["XRZ65KNZ", 2], + ["TJ5X2TUY", 2], + ["BSA4A5GM", 2], + ["SEE6AN3J", 2], + ["JVR32P79", 2], + ["LRHZM6MW", 2], + ["CML3EVWT", 2], + ["738W3CAC", 1], + ["QUUJG5BY", 3], + ["N78GRP9U", 2], + ["JHJ23XYM", 2], + ["8CB3LRLE", 2], + ["7WJQKHXC", 1], + ["K7XYXHKC", 2], + ["8A54RVVH", 2], + ["V82KHYNB", 2], + ["WTLJHYYE", 2], + ["8E985C5R", 2], + ["VSNJBJEX", 2], + ["FH46MBVT", 2], + ["XUEJCGA4", 2], + ["4H8CU9ZK", 1], + ["VKSX9WS2", 2], + ["QEK3THPW", 2], + ["96QKTKV8", 2], + ["NDD5NGPV", 2], + ["LZU2AN6P", 2], + ["TKZA5AAK", 1], + ["GEYV527V", 2], + ["7QRWSPVD", 2], + ["MK7PKZN5", 2], + ["JAQNBECT", 2], + ["YQS2F4UL", 3], + ["ZNVR7SPN", 1], + ["FFFENVED", 2], + ["GLCHV74K", 2], + ["F6EZAM56", 2], + ["M4WVXECJ", 2], + ["ZHVDXYVQ", 3], + ["BQ3DA8GX", 2], + ["BSTCZ2PR", 2], + ["Q2QVXTWW", 2], + ["JZ2B3BZ4", 2], + ["6SWHPPTM", 1], + ["AN7C46HV", 2], + ["LYURNP5R", 2], + ["BF4N3436", 2], + ["H3D562CG", 2], + ["S2N83TWB", 2], + ["X6N5MW4Z", 2], + ["TUB9QJLP", 2], + ["8BZUSCDM", 2], + ["YH2DVDUV", 2], + ["MSLJUYTK", 1], + ["DPDJRNCK", 2], + ["JMC6R5ER", 1], + ["NM72CXCR", 2], + ["49FK9EH6", 2], + ["Y9JEY5RY", 2], + ["H7M2PBW9", 2], + ["AA8YYTPS", 2], + ["XNAMAHV5", 2], + ["HT789W7H", 2], + ["6DEX5XQW", 1], + ["GE9R6FUS", 1], + ["K8XNQGB4", 2], + ["BKBT8Y4M", 2], + ["ZQXVAUT4", 2], + ["L2SUTFCE", 2], + ["USVUM8TH", 2], + ["5EE5KZNW", 2], + ["XXJHARC2", 2], + ["XSS22QGG", 2], + ["T68C3XEN", 2], + ["EJ3DY8JL", 1], + ["CEZKYR8S", 3], + ["ATZL78PT", 1], + ["WYNLPVXH", 2], + ["4PZBVCK3", 2], + ["TEGJGMDG", 1], + ["ZMLCM6K5", 2], + ["BEZ6QLZ8", 2], + ["LUMZP7K5", 2], + ["JFHMZ49C", 1], + ["3EBJDL98", 1], + ["EU7ZDFDV", 2], + ["X5UXF39F", 2], + ["LU4KWTMF", 1], + ["H2ZURAKP", 2], + ["FFBC5CGN", 2], + ["GCMWGP4D", 2], + ["KNQVBZUA", 1], + ["VVV6WBD4", 2], + ["ACR5LT2M", 1], + ["KJHA5YL2", 2], + ["JKJCD4VQ", 2], + ["TG3UNGSF", 4], + ["PP7UJAEQ", 2], + ["3XZXSKCZ", 1], + ["X5UWMZSJ", 2], + ["RWJFXEJQ", 1], + ["ZN8DYTXX", 2], + ["HWAJWWJ2", 2], + ["896P2AKV", 2], + ["H256PEZS", 2], + ["Q7THQAUW", 2], + ["VJSZLAAL", 2], + ["59YFBAH7", 2], + ["6VPWJAFN", 2], + ["KH8QD6HJ", 2], + ["77WLWBQE", 2], + ["WBTZHHC6", 3], + ["GLTF2QC6", 2], + ["PYZB4Y6M", 2], + ["QTUUHLB3", 1], + ["CX3QBNWH", 2], + ["NHQZMV7W", 2], + ["C79HF7XU", 2], + ["S3YXQ5CV", 1], + ["4FW3RHYX", 2], + ["228LTSKG", 1], + ["ERZWYLW5", 3], + ["NRR3T26U", 2], + ["EDFQUT66", 2], + ["AKPENL8W", 2], + ["2SN2QPLS", 2], + ["ZZZMEZ4T", 1], + ["2P67RT5T", 2], + ["PBMVXB9K", 2], + ["3JHRZQPR", 2], + ["DLLP7DH6", 2], + ["ZATNCTFQ", 2], + ["EYFUE7GS", 2], + ["BG9WX5QM", 1], + ["Y48VCVEP", 2], + ["GBQ9L5MR", 2], + ["N63C2LDR", 2], + ["2YEZJS7U", 2], + ["A875Q2VJ", 2], + ["2K76HMM8", 1], + ["85T8LFDA", 2], + ["GZXCT494", 2], + ["FNQYH5TT", 2], + ["UKPPKR26", 2], + ["FBUJ3BL6", 2], + ["YL8D2YEP", 2], + ["E22W9TCZ", 2], + ["XPKMWSVV", 2], + ["CD6VSUHU", 2], + ["P4TP6MRH", 2], + ["EA75JXFG", 1], + ["KKJBMY7A", 2], + ["68CVXRJJ", 2], + ["YW5J82T5", 2], + ["HLQ3JQCM", 2], + ["2Z9G4EEY", 2], + ["GFPFBVRR", 1], + ["RMFMBZNN", 1], + ["SN99TSUN", 1], + ["HXFP6MED", 2], + ["W8BGWL3C", 2], + ["N4P26VNH", 2], + ["AX9S49ZL", 2], + ["7UCWGNQN", 1], + ["26FL72U3", 2], + ["4T4SZNWS", 2], + ["58EYWX9C", 2], + ["T3Q38QK7", 2], + ["57UDUZSE", 1], + ["9WVC6L43", 1], + ["ZMEQGDDJ", 2], + ["4YZY9KPU", 2], + ["X5YSV9F4", 2], + ["UXKKQK4M", 2], + ["CNMVPUFE", 2], + ["ZVYXEJES", 2], + ["5BURWVD5", 2], + ["DET76773", 2], + ["J5WTN6CL", 2], + ["P3MPBJH5", 2], + ["VP478KRC", 2], + ["QGXSKLMD", 2], + ["7FTMND3H", 1], + ["L3MFDKKT", 2], + ["77FCCXFB", 2], + ["6AKEWDPY", 2], + ["R6PAYYTG", 2], + ["Q2BJ228V", 2], + ["X766KMNM", 2], + ["R3NPVNVC", 1], + ["F95MX9TC", 2], + ["G945Q524", 2], + ["EDZFFZ6Q", 2], + ["GPPY9W3U", 2], + ["VWFYBBBH", 2], + ["XNUHKDEG", 1], + ["CFQCJAJG", 2], + ["WB8UAYXB", 2], + ["WFEHJRMW", 2], + ["92PD3Q7L", 2], + ["564ZV399", 2], + ["ZZNKM24F", 2], + ["AAF6L2XX", 2], + ["BD774DV2", 2], + ["5SYQDHFM", 2], + ["EPCK6MYC", 1], + ["6S934GWT", 2], + ["G5LBX2NV", 2], + ["MREH3ZGU", 2], + ["TG23CKDX", 2], + ["QV9QAGT5", 2], + ["FY2DD5F6", 1], + ["XCEF97BS", 2], + ["S9R5D78C", 2], + ["5C3SR888", 2], + ["AAJXMVA3", 2], + ["UGJ4WFHS", 2], + ["AVEJ4SSB", 1], + ["X2ZRVXQD", 2], + ["9LSND9KT", 2], + ["Q23JMFUE", 2], + ["3NJWB7YV", 1], + ["J2ACTQ9X", 2], + ["CAX7GKSA", 1], + ["2B7JTTSW", 2], + ["J5VD86CJ", 2], + ["ER6JCQT8", 1], + ["LLQD82ZX", 2], + ["5WL3CFGW", 2], + ["G2H2AWWR", 2], + ["5A7E22QL", 2], + ["FCZ4X8QC", 2], + ["WYV4ECRW", 1], + ["2QVJF54X", 1], + ["SU7C8WU9", 2], + ["K7TY55RL", 1], + ["NVZSRYFS", 2], + ["HSAS73BE", 2], + ["Q7H6GZGH", 2], + ["VDSLCHCY", 1], + ["HTAPUE7R", 2], + ["DD2C79TV", 2], + ["UJH49TTN", 1], + ["M7PDT25R", 2], + ["6LUHV4QA", 1], + ["J9W2XCE2", 2], + ["PPT7CGST", 2], + ["PCNEVETP", 2], + ["NY3VH3MZ", 1], + ["ZF6SNA6W", 2], + ["JNSZQSMW", 2], + ["ZQHADAWX", 2], + ["ZFSMDN7R", 1], + ["J453QQGK", 1], + ["HLNF25B9", 2], + ["P98V3L5D", 2], + ["SQZD34EJ", 1], + ["XNW79CME", 2], + ["P5ES4REA", 2], + ["EQHHDY8T", 2], + ["CAS8RCAL", 2], + ["9H2QK7VL", 2], + ["FA4S63JY", 3], + ["WLXJV4ZH", 2], + ["QTCBU6M9", 2], + ["6PBLQTEX", 2], + ["C48DGGDH", 2], + ["XRYKYCDG", 2], + ["QDQM3J9M", 2], + ["XBZCNWFQ", 1], + ["E6YNGJR6", 1], + ["HVK5SUSB", 2], + ["ZYYDDRQH", 2], + ["GDWGRDUS", 2], + ["6RUDMSAF", 1], + ["AC327S57", 2], + ["LW8NLMP9", 2], + ["T6DF78EJ", 2], + ["WL7K63Y7", 2], + ["BR7X3W58", 2], + ["9VM3BQPF", 3], + ["WLBF8H8L", 2], + ["7PK7R9UN", 1], + ["8LDBZZ24", 2], + ["WEAA336D", 1], + ["ZFZNUBNY", 2], + ["MTGJLJT7", 2], + ["ZH7MML4Y", 2], + ["GXGN6KMH", 2], + ["A9VF9ZEX", 2], + ["EYWVJL2G", 2], + ["B9JG5985", 2], + ["SMBX42QU", 2], + ["B5ABZLXY", 1], + ["KULCHGWA", 2], + ["JNUA3A2G", 1], + ["AUD5R8VF", 2], + ["W9XBSS2P", 2], + ["Z3VHRRQD", 2], + ["D8W8Q37U", 2], + ["JEEWRLJK", 1], + ["YWL9UJD7", 2], + ["S2ZVM9RH", 2], + ["B3QMEJR7", 2], + ["WTRJQDVP", 2], + ["SJJSAYRT", 2], + ["MT8N97SL", 1], + ["JTT8CQVY", 2], + ["QCFLPE84", 1], + ["CNB5EHJT", 1], + ["TXCETQ7V", 2], + ["7J5LNXXU", 2], + ["E9KZXS3V", 2], + ["MM543D69", 2], + ["Z4P9Y3PF", 2], + ["LNDQJRGV", 1], + ["9JRJELTK", 2], + ["BEYYZRKR", 3], + ["DS46GGHS", 1], + ["BWP4CG96", 2], + ["8P75XTYJ", 2], + ["7X4FML68", 1], + ["M5EFDHNQ", 3], + ["LVASD6UP", 2], + ["T5K94WU9", 2], + ["UJFJU446", 1], + ["4JTLQDP7", 2], + ["CRVWXJBS", 1], + ["KE9W4WCM", 2], + ["EFHSKL7V", 2], + ["SYM2YNYR", 1], + ["LHJXL66N", 2], + ["BBPYAEPF", 2], + ["YEG8FNL3", 1], + ["SDLV7YTG", 2], + ["HQWBVEJU", 2], + ["D4EUEVCH", 1], + ["CPUCY7E6", 2], + ["85UELKC3", 3], + ["5LWJAGWZ", 2], + ["RJXEXAAB", 1], + ["A7NR8EGY", 2], + ["QJQTTLG7", 2], + ["Y5LVEERE", 2], + ["3R7PDRLA", 2], + ["4KSPWUEH", 2], + ["FN264Z4B", 2], + ["R2QFB9SP", 2], + ["5YEYL884", 2], + ["AHJM2XKH", 2], + ["3W54ZVF7", 2], + ["S5TVR399", 2], + ["GUTLW6U4", 1], + ["C4XRPETP", 2], + ["G5RRSXKN", 2], + ["TPYUG8DL", 2], + ["SRDMDQN7", 2], + ["WLBZ6Y4U", 1], + ["89M26FJK", 2], + ["FPZDG7TQ", 2], + ["UQ4393UN", 2], + ["8TX4FZ9M", 2], + ["G58NLNVJ", 2], + ["8Z9BHT9C", 1], + ["AGTQXGLZ", 2], + ["JYTVVXBN", 1], + ["C3R9ECFC", 2], + ["9XLRNE7F", 2], + ["32EY8RLD", 2], + ["XVH472TM", 2], + ["7ED5ZP4V", 1], + ["VXK7KL28", 2], + ["SQ7BQK3G", 1], + ["8MTC2Y8G", 2], + ["EQR9BD6P", 1], + ["PB45SM6C", 1], + ["W9TCHXBR", 2], + ["4NC25JPT", 2], + ["BDP7MF2E", 1], + ["B45F26ZV", 3], + ["33R5U3WE", 2], + ["4S4UFZHZ", 1], + ["VBTGL3GY", 2], + ["MBLFDAW4", 3], + ["RRB5RFM4", 1], + ["3V3WQ59L", 1], + ["PXT3TA4D", 4], + ["RXX8JFB4", 2], + ["BQSC3YZN", 1], + ["TJPJR3FE", 2], + ["FXYR6EBY", 2], + ["V2YVHYB7", 2], + ["9SCD9858", 2], + ["NKSWRQ6K", 2], + ["3EF8A6ZC", 2], + ["3C4EHXAN", 1], + ["EA7NF59A", 2], + ["V6ZYA6U3", 2], + ["YXMW7AS3", 2], + ["NDMGQTNF", 2], + ["FQVCMXSX", 2], + ["HEYH2KDF", 1], + ["E2MANWH2", 2], + ["2CEGU22P", 2], + ["VAMSXW6N", 1], + ["ZPP6TA7Y", 1], + ["X69JF2K5", 1], + ["X76HLNVS", 2], + ["8HZSW7TY", 1], + ["RJUUAH4R", 2], + ["9K6GQGU8", 2], + ["6EFEFS8B", 2], + ["Y6EK2VGG", 2], + ["DFG3W5HN", 2], + ["DGDFJF2K", 2], + ["ZR5TFFVC", 1], + ["D2FV4SQK", 2], + ["P55K5RGH", 2], + ["9T4KL2YD", 2], + ["JHQMSJU6", 2], + ["KTPSKYWS", 2], + ["HWB26533", 2], + ["FLK6WLLA", 2], + ["FE5RHWWK", 2], + ["ZFSTAKCG", 2], + ["64727BPC", 2], + ["RTB764FK", 2], + ["GXMKMR8N", 2], + ["7MH7B937", 2], + ["A4HFDJL4", 2], + ["GHAQVEMG", 2], + ["N26PFF5K", 2], + ["8UGFWKSP", 1], + ["JMTJT76P", 1], + ["LYXR3PUF", 1], + ["RYKD9RX3", 2], + ["KKLW2J29", 2], + ["QEPE8QBP", 2], + ["DJKNEFC3", 2], + ["3LZRPLNB", 2], + ["MM7HP7A9", 1], + ["UM3B3GLL", 2], + ["KJ8Z3QLC", 2], + ["SUAGU2AQ", 2] +].each do |claim_reference, plan_type| + claim = Claim.find_by!(reference: claim_reference, student_loan_plan: nil) + + plan_type = "plan_#{plan_type}" + + ApplicationRecord.transaction do + claim.update!(student_loan_plan: plan_type) + + task = claim.tasks.build( + { + name: "student_loan_plan", + claim_verifier_match: :all, + passed: true, + manual: false, + created_by: nil + } + ) + + task.save!(context: :claim_verifier) + + claim.notes.create!( + { + body: "[SLC Student loan plan] - Matched - has a student loan", + label: "student_loan_plan", + created_by: nil + } + ) + end +end