Fix ingest licence rake and licence model