Skip to content

Commit badf382

Browse files
committed
Add script to set coda reference for Suppliers
This will set the coda reference for the 26 Suppliers currently migrated to the new system. Run with: rails runner db/data_migrate/20180807084912_set_coda_reference_for_suppliers.rb
1 parent 23c38f1 commit badf382

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
NAME_TO_CODA_REFERENCE_MAPPING = {
3+
'Addleshaw Goddard LLP' => 'C000976',
4+
'Ashurst LLP' => 'C005187',
5+
'DLA Piper LLP' => 'C002107',
6+
'Eversheds Sutherland (International) LLP' => 'C000941',
7+
'Linklaters LLP' => 'C002112',
8+
'Norton Rose Fulbright LLP' => 'C002119',
9+
'Osborne Clarke LLP' => 'C009841',
10+
'Stephenson Harwood' => 'C005196',
11+
'Bond Dickinson LLP' => 'C000940',
12+
'Burges Salmon LLP' => 'C000977',
13+
'DAC Beachcroft LLP' => 'C009492',
14+
'Dentons UK MEA LLP' => 'C000851',
15+
'Gowling WLG (UK) LLP' => 'C000855',
16+
'Mills & Reeve LLP' => 'C002031',
17+
'Pinsent Mason' => 'C000853',
18+
'PricewaterhouseCoopers LLP' => 'C000568',
19+
'TLT LLP' => 'C009493',
20+
'Bevan Brittan LLP' => 'C000850',
21+
'Browne Jacobson LLP' => 'C005191',
22+
'Field Fisher Waterhouse' => 'C000911',
23+
'Hogan Lovells International LLP' => 'C002113',
24+
'Simmons & Simmons LLP' => 'C000917',
25+
'Slaughter & May' => 'C002123',
26+
'BRYAN CAVE LEIGHTON PAISNER LLP' => 'C002101',
27+
'Clifford Chance LLP' => 'C009889',
28+
'Freshfields Bruckhaus Deringer' => 'C002108',
29+
}.freeze
30+
31+
NAME_TO_CODA_REFERENCE_MAPPING.each_pair do |name, coda_reference|
32+
Supplier.find_by!(name: name).update!(coda_reference: coda_reference)
33+
end

0 commit comments

Comments
 (0)