Fixes #3502 : Add migration script to add self validation

http://www.rudder-project.org/redmine/issues/3502