Update model.eruby

fit to legacy db