Bugfix for comparison of string and symbol when adding foreign key