Feature/rails model architecture