Create the team model
Create teams table
updated schema with the teams table
specs for the Team models associations and validations
validations and relationships for the Team model
create migrations for has_and_belongs_to_many relationship for users and teams
remove team_id from users table
recent schema including exclusion of team_id from users and inclusion of teams_users table
remove the spec requiring the team_id presence for users