Marten::DB::Model::Table::ClassMethods
Instance methods
Allows to explicitly configure a new index for a specific set of fields.
This method allows to configure a new index targetting a specific set of fields. Indexes must be
associated with a mandatory name that must be unique accross all the indexes of the considered model.
Allows to explicitely define the name of the table associated with the model.
Returns the name of the table associated with the considered model.
Unless explicitely specified, the table name is automatically generated based on the label of the app associated with the considered model and the class name of the model.
Allows to explicitly configure a new unique constraint for a specific set of fields.
This method allows to configure a new unique constraint targetting a specific set of fields. Unique
constraints must be associated with a mandatory name that must be unique accross all the constraints of
the considered model.
Returns all the fields instances associated with the current model.
It is worth mentioning that this method will return all the fields of the considered model: the local model fields and model fields from parent classes.
Allows to retrieve a specific field instance associated with the current model.
The returned object will be an instance of a subclass of Marten::DB::Field::Base. It is worth mentioning
that this method will return local model fields as well as parent model fields.
Allows to retrieve a specific field instance associated with the current model.
The returned object will be an instance of a subclass of Marten::DB::Field::Base. It is worth mentioning
that this method will return local model fields only.