Meghan Trainor was warned her career would be over if she had children because "nobody really cares" about moms in music.