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 Apr 12, 2017 by Lucas Serrano's avatar Lucas Serrano
Show whitespace changes
Inline Side-by-side
Configuring.md
View page @ f7429d47
......@@ -10,7 +10,7 @@ end
These are the keys available to configure Enum features:
<a name="enum.initializer"></a>`enum.initializer` Indicates if the enum features on ActiveRecord::Base should be initiated automatically or not. When is set to false, you have to manually call `enum :column` in each model that you want to use this resource.
<a name="enum.initializer"></a>`enum.initializer` Indicates if the enum features on ActiveRecord::Base should be initiated automatically or not. When it is set to false, you have to manually call `enum :column` in each model that you want to use this resource.
Default value: `false`
<a name="enum.base_method"></a>`enum.base_method` The name of the method to be used on any ActiveRecord::Base to initialize model-based enum features.
......@@ -19,7 +19,7 @@ Default value: `:enum`
<a name="enum.save_on_bang"></a>`enum.save_on_bang` Indicates if bang methods like 'disabled!' should update the record on database or not.
Default value: `true`
<a name="enum.namespace"></a>`enum.namespace` Specify the namespace of each enum type of value, such as `::Enum::Roles`.
<a name="enum.namespace"></a>`enum.namespace` Specify the namespace of each enum-type of value, such as `::Enum::Roles`.
Default value: `::Enum`
<a name="enum.i18n_scopes"></a>`enum.i18n_scopes` Specify the scopes for I18n translations.
......
Clone repository
  • Wiki
  • Configuring

Data types

  • Enum
  • Interval

Querying

  • Distinct On
  • Auxiliary Statements