working with ruby, active record, and er diagrams