relation between occurrences and occurrence_types Active Records