Created
June 12, 2017 15:45
-
-
Save SnacksOnAPlane/06db235f243d31bace635deb95785f38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cfs = """165f4ec3-0525-4cad-9ba3-2d58c08843b3 GB | |
2b9cd8ab-644d-4f36-97ad-dcd81d93568f DE | |
0fb56998-6a9f-40de-9e5d-ec8275eebce2 NZ | |
5c821efd-ecf1-47e8-a101-8ee0d23c7630 NZ | |
250656f0-7ff9-4729-9d7e-8c049eb94420 AU | |
3947595c-d574-4afe-a41f-10956a32616b AU | |
9c945822-e805-424b-a516-97fbe088518a FR | |
d6dabd4c-a296-416c-ab80-15a1c589b2f5 AU | |
d3450b18-a90a-4371-a020-7b267c075745 AU | |
fab5f49a-8c42-4484-83a5-628c895a0290 AU | |
a9292e6e-bd0c-41be-a6d1-0f76e42743f3 AU | |
8dc00c3c-0727-4005-802d-d3552e901c66 AU | |
d44a3088-4587-47d9-8f8e-c9238f42430f AU | |
50a1a927-6d05-4815-aed6-37c7a0e8b3d3 AU | |
0647bdfa-824e-49c9-9f08-2e20a44b961e AU | |
95fbeb19-1fef-4534-9e0f-8fa0e948bfb0 GB | |
5c485094-7c8c-477c-98e0-6057b043abd6 GB""".split("\n") | |
cfs.each do |cf| | |
uuid, iso = cf.split | |
country = Country.find_by(country_iso: iso) | |
CallFlow.find_by(uuid: uuid).update_attributes(country_id: country.id) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment