add to rails example using subclassing AR and becomes