Removed foreign_key field from belongs_to, fixed attr fields)