Removed primary on all join tables for HABTM. Added custom primary key to Departments table. Updated schema.rb.