Marten::DB::Model::Table
Instance methods
Allows to read the value of a specific field.
This methods returns the value of the field corresponding to field_name. If the passed field_name doesn't
match any existing field, a Marten::DB::Errors::UnknownField exception is raised.
Allows to set the value of a specific field.
If the passed field_name doesn't match any existing field, a Marten::DB::Errors::UnknownField exception
will be raised.
Allows to set the values of multiple fields.
If one of the specified field names doesn't match any existing field, a Marten::DB::Errors::UnknownField
exception will be raised.
Allows to set the values of multiple fields.
If one of the specified field names doesn't match any existing field, a Marten::DB::Errors::UnknownField
exception will be raised.
Macros
Allows to automatically configure creation and update timestamp fields.
This macro will contribute two model fields to the models it is applied to: one created_at field containing
the creation time of the record, and one updated_at field containing the update time of the record (which is
also refreshed every time the model is updated).