I have an existing model without any validations. I am writing a v2 api for this model. I would like to add validations checks in this api. What ways are there to add validations just to this API?
I have a time field in a model. It is returning time as string when I call field_before_type_cast from rails console. But when I call the same in spec I get a Time object. More details: https://dpaste.de/4fyj