diff options
author | Emil Soman <emil.soman@gmail.com> | 2014-02-05 13:02:38 +0530 |
---|---|---|
committer | Emil Soman <emil.soman@gmail.com> | 2014-02-06 17:38:31 +0530 |
commit | 8806768e9f1a2648085f7826d9a0032457182bdb (patch) | |
tree | 95ec57462acee1c0b0c86c3e028345ece70d50ea /guides/source/configuring.md | |
parent | 90794325cfcc0502398c23a9f8db0017270121a7 (diff) | |
download | rails-8806768e9f1a2648085f7826d9a0032457182bdb.tar.gz rails-8806768e9f1a2648085f7826d9a0032457182bdb.tar.bz2 rails-8806768e9f1a2648085f7826d9a0032457182bdb.zip |
Add config to disable schema dump after migration
* Add a config on Active Record named `dump_schema_after_migration`
* Schema dump doesn't happen if the config is set to false
* Set default value of the config to true
* Set config in generated production environment file to false
* Update configuration guide
* Update CHANGELOG
Diffstat (limited to 'guides/source/configuring.md')
-rw-r--r-- | guides/source/configuring.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index 669086edbe..561a69749a 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -292,6 +292,12 @@ All these configuration options are delegated to the `I18n` library. * `config.active_record.maintain_test_schema` is a boolean value which controls whether Active Record should try to keep your test database schema up-to-date with `db/schema.rb` (or `db/structure.sql`) when you run your tests. The default is true. +* `config.active_record.dump_schema_after_migration` is a flag which + controls whether or not schema dump should happen (`db/schema.rb` or + `db/structure.sql`) when you run migrations. This is set to false in + `config/environments/production.rb` which is generated by Rails. The + default value is true if this configuration is not set. + The MySQL adapter adds one additional configuration option: * `ActiveRecord::ConnectionAdapters::MysqlAdapter.emulate_booleans` controls whether Active Record will consider all `tinyint(1)` columns in a MySQL database to be booleans and is true by default. |