reimplenting find_or_create_by_name for rails 4