Add support for the :class_name option in belongs_to

Please review @avsej