BUGFIX Parent, charge_cycle_id, nil for has and belongs to many (habtm) association. Adding inverse_of and assigining value - there is probably a better solution!