Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • T torque-postgresql
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Carlos
  • torque-postgresql
  • Wiki
  • Configuring

Configuring · Changes

Page history
Updated Configuring (markdown) authored Dec 25, 2022 by Carlos's avatar Carlos
Hide whitespace changes
Inline Side-by-side
Configuring.md
View page @ d6223565
......@@ -13,12 +13,26 @@ These are the keys available to configure general features:
<a name="eager_load"></a>`eager_load` Set if any information that requires querying and searching or collecting information should be eager loaded. This automatically changes when rails same configuration is set to true.
Default value: `false`
<a name="use_extended_defaults"></a>`use_extended_defaults` This allows default values to have extended values like arrays and casted values. Extended defaults is still experimental, so enable and test it before using it in production.
Default value: `false`
<a name="irregular_models"></a>`irregular_models` Set a list of irregular model names when associated with table names. It uses the `'table_name' => 'model_name'` format. This is widely used for inheritance because record types need to be associated with a model class.
Default value: `{}`
## <a name="schemas"></a>Schemas configurations
These are the keys available to configure schemas features:
<a name="schemas.blacklist"></a>`schemas.blacklist` Defines a list of LIKE-based schemas to not consider for a multiple schema database. This is also available on `config/database.yml` as `schemas` and nested to it, `blacklist`.
Default value: `['information_schema ', 'pg_%']`
<a name="schemas.whitelist"></a>`schemas.whitelist` Defines a list of LIKE-based schemas to consider for a multiple schema database. This is also available on `config/database.yml` as `schemas` and nested to it, `whitelist`.
Default value: `['public']`
## <a name="associations"></a>Associations configurations
These are the keys available to configure associations features:
<a name="associations.belongs_to_many_required_by_default"></a>`associations.belongs_to_many_required_by_default` Define if `belongs_to_many` associations are marked as required by default. `false` means that no validation will be performed.
Default value: `false`
......
Clone repository
  • Wiki
  • Configuring

Data types

  • Box
  • Circle
  • Date/Time Range
  • Enum
  • EnumSet
  • Interval
  • Line
  • Segment

Querying

  • Arel
  • Auxiliary Statements
  • Belongs to Many
  • Distinct On
  • Dynamic Attributes
  • Has Many
  • Inherited Tables
  • Insert All
  • Multiple Schemas