aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2017-07-15 20:23:15 +0200
committerGitHub <noreply@github.com>2017-07-15 20:23:15 +0200
commit9930b97e7d9afc8fd7ec10efe649d5e10b4f9556 (patch)
treed94d8ee9f90b63a243b060b415b9b11602ae559d /guides
parent89182d681013e42c514860b24f197ab84a8662f5 (diff)
parent90bb874ea15a16d3fa363a6f5b2fe7302c913f7b (diff)
downloadrails-9930b97e7d9afc8fd7ec10efe649d5e10b4f9556.tar.gz
rails-9930b97e7d9afc8fd7ec10efe649d5e10b4f9556.tar.bz2
rails-9930b97e7d9afc8fd7ec10efe649d5e10b4f9556.zip
Merge pull request #29770 from y-yagi/fix_boolean_column_migration_script
Fix boolean column migration script
Diffstat (limited to 'guides')
-rw-r--r--guides/source/configuring.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index d7fa8813b2..bc8df5a797 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -387,7 +387,7 @@ by setting up a rake task which runs
```ruby
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
- ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 0)
+ ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
```
for all models and all boolean columns, after which the flag must be set to true