Corrected syntax error on "has_one" definition