They are in the AL West BTW, and it happened in 2013.
They switched so each league has 15 teams now. Before the NL had 16 and the AL had 14 preventing the league from having to have an interleague series always going on, but they evened it out and now have an interleague series always running.