Epicodus exercise in Ruby and SQL using joins