Skip to content

Commit 17cf22b

Browse files
committed
Add script to set coda reference for Frameworks
This will set the coda reference for the three Frameworks currently migrated to the new system. Run with: rails runner db/data_migrate/20180807083612_set_coda_reference_for_frameworks.rb
1 parent 621dbdd commit 17cf22b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
SHORT_NAME_TO_CODA_REFERENCE_MAPPING = {
3+
'RM3786' => '401108',
4+
'RM3756' => '401148',
5+
'RM3787' => '401149'
6+
}.freeze
7+
8+
SHORT_NAME_TO_CODA_REFERENCE_MAPPING.each_pair do |short_name, coda_reference|
9+
Framework.find_by!(short_name: short_name).update!(coda_reference: coda_reference)
10+
end

0 commit comments

Comments
 (0)