unepwcmc/SAPI — pull request #226 by agnessa (2014-02-21 13:46:46+00:00)
Title: fix the taxon - origin - source validation

This issue was introduced by https://github.com/unepwcmc/SAPI/pull/156; previously in order for a validation to run on a given record, all column_names involved in the validation had to be not null. However, because it turned out that null is valid input for some validations, this constraint was limited only to required fields within column_names. Clearly we missed the fact that this will make the taxon - origin - source validation unhappy. To reconcile I added a flag on validation rules which is called is_strict. If set to true, all column_names must be not null for the validation to run.

rake db:migrate
remove all validations / recreate validations from seeds