Make Active Records form DB with composite keys