Replace t.belongs_to by t.integer in migrations