Railsify the relation member model, type attribute, by putting it into class case...