add constraint to prohibit logic_id=nil for SOs

SingleOntologies should only be allowed to have
a logic_id of NULL, if there state is not done.
Merge branch 'staging' into 484-nil_handling_for_logics
do not stub parsing for git spec anymore

also remove user_id not null contraint
from logics.
Merge branch 'staging' into 484-nil_handling_for_logics
force test-db migrations on travis.
Merge branch 'staging' into 484-nil_handling_for_logics
do not use ALTER TABLE IF EXISTS

Since we also need to support PostgreSQL 9.1,
we can't use the ALTER TABLE IF EXISTS, since
IF EXISTS on ALTER TABLE was introduced in 9.2.
adjust factories to set logic for ontology.
Merge remote-tracking branch 'origin/484-nil_handling_for_logics' into staging