Marten::DB::Field::File
Inherits Marten::DB::Field::Base / Reference / Object
Represents a file field.
Constructors
Instance methods
Converts the raw DB value to the corresponding field value.
Extracts the field value from a DB result set and returns the right object corresponding to this value.
max_size
Returns the max size of the string corresponding to the file path to be stored in the database.
prepare_save(record, new_record = false)
Runs pre-save logic for the specific field and record at hand.
This method does nothing by default but can be overridden for specific fields that need to set values on the model instance before save or perform any pre-save logic.