alphagov / trade-tariff-backend

Enabling the population and distribution via API of UK Customs tariffs and duties
MIT License
7 stars 6 forks source link

Add in MeasurementUnitAbbreviations table #189

Closed macool closed 10 years ago

macool commented 10 years ago

The UK Trade tariff currently displays the measurement units "as is" from the TARIC database, some of which are quite old or long. There is a document published by the EU on how these units can be reimported in an abbreviated (and more common form). This PR implements the unit abbreviations and will change how the measures are displayed.

It includes a DB schema migration and a data migration.

rake db:migrate
rake db:data:migrate

pivotal story

matthewford commented 10 years ago

Examples of this at work:

Before

screen shot 2014-07-17 at 16 59 07

After

screen shot 2014-07-17 at 16 58 56