Is is possible to build validations at runtime?

Hi,

I am planning to store file validations in the database and I want to add these to the model save at runtime. Is this possible?

@submission_field.value_data = params[:asset][:file_data]
@submission_field.extend(Shrine::Attachment(:value))

# TODO add in validations here?

@submission_field.save!

# PROFIT?