alphagov/trade-tariff-backend — pull request #105 by sauliusg (2013-09-10 08:45:36+00:00)
Title: 55706190 invalid country group and description on measure

This change is for https://www.pivotaltracker.com/story/show/55706190

Fixes several issues as seen in the attached screenshot, i.e.:

* Adds several national country group names. Only for those country groups that currently have measures built. Waiting an answer from HMRC to clarify about what should we do about others (see Matt's comment in the ticket).
* Fixes ChiefTransformer measure association to TARIC country group. We used to map just CHIEF countries to TARIC countries by using `Chief::CountryCode` now we do the same with `Chief::CountryGroup` with CHIEF country groups.
* Fixes national certificate description (see screenshot), that was caused by mass rename of standing national data.
* Fixes national certificate type validity period by adding validity start date which is necessary as it's part of association query.

Attaching a screenshot of how the final result looks like:

![screen shot 2013-09-10 at 11 33 15 am](https://f.cloud.github.com/assets/13653/1113173/36aabab6-19f5-11e3-8373-a44f9b47530e.png)

**NOTE** Data migrations have to be applied after deployment:

`bundle exec rake db:data:migrate`