1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Update 'Configuring Rails Applications' guide

- Add mention about `config.active_record.internal_metadata_table_name`
  - Add mention about `config.active_record.protected_environments`
This commit is contained in:
bogdanvlviv 2017-12-12 23:20:14 +00:00
parent 1a411d4b7f
commit 011e641d19
No known key found for this signature in database
GPG key ID: E4ACD76A6DB6DFDD

View file

@ -322,6 +322,10 @@ All these configuration options are delegated to the `I18n` library.
* `config.active_record.schema_migrations_table_name` lets you set a string to be used as the name of the schema migrations table.
* `config.active_record.internal_metadata_table_name` lets you set a string to be used as the name of the internal metadata table.
* `config.active_record.protected_environments` lets you set an array of names of environments where destructive actions should be prohibited.
* `config.active_record.pluralize_table_names` specifies whether Rails will look for singular or plural table names in the database. If set to `true` (the default), then the Customer class will use the `customers` table. If set to false, then the Customer class will use the `customer` table.
* `config.active_record.default_timezone` determines whether to use `Time.local` (if set to `:local`) or `Time.utc` (if set to `:utc`) when pulling dates and times from the database. The default is `:utc`.