rails model architecture