未验证 提交 011e641d 编写于 作者: B bogdanvlviv

Update 'Configuring Rails Applications' guide

  - Add mention about `config.active_record.internal_metadata_table_name`
  - Add mention about `config.active_record.protected_environments`
上级 1a411d4b
......@@ -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`.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册