aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/configuring.md
diff options
context:
space:
mode:
authorJerad Phelps <jerad.phelps@gmail.com>2013-10-17 19:00:22 -0500
committerJerad Phelps <jerad.phelps@gmail.com>2013-10-27 08:50:35 -0500
commit26638f0ac939edb00d12b55442bbdb138d5d9449 (patch)
treedb4342624b74367631e79a0a2a83212aff9b6747 /guides/source/configuring.md
parent6c2810b8ed692004dca43e554982cdfdb8517b80 (diff)
downloadrails-26638f0ac939edb00d12b55442bbdb138d5d9449.tar.gz
rails-26638f0ac939edb00d12b55442bbdb138d5d9449.tar.bz2
rails-26638f0ac939edb00d12b55442bbdb138d5d9449.zip
added schema_migrations_table_name to ActiveRecord::Base in order that the name of the schema migrations table can be configured.
consolidated test_schema_migrations_table_name tests Added changelog entry edited changelog removed commented lines removed reader ensure the schema migrations table is reset at end of test added entry to configuration guide guides typo and changelog order
Diffstat (limited to 'guides/source/configuring.md')
-rw-r--r--guides/source/configuring.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index b14f8b6e7f..8ac34c9716 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -261,6 +261,8 @@ config.middleware.delete "Rack::MethodOverride"
* `config.active_record.table_name_suffix` lets you set a global string to be appended to table names. If you set this to `_northwest`, then the Customer class will look for `customers_northwest` as its table. The default is an empty string.
+* `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.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` for Rails, although Active Record defaults to `:local` when used outside of Rails.