dynamic validations

Tim Dunn wrote:

I am wondering what code I should put inside the class of my model to do
validations for all columns of a given data type. For example I want to
validate whether it is a number or not if it is of type integer. I want
to do this so I don't have to do individual validations on every column

Use validates_numericality_of :columnname

Tell your problem clearly so that we can try for solution..