aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/configuring.md
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-07-13 07:36:40 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-07-13 07:36:40 +0900
commit90bb874ea15a16d3fa363a6f5b2fe7302c913f7b (patch)
treebbe616abfdfbb7f79ed796f4b49ab405a00dd9e5 /guides/source/configuring.md
parent58f10a31b37e9bb6e975a71aa63744f318ee043d (diff)
downloadrails-90bb874ea15a16d3fa363a6f5b2fe7302c913f7b.tar.gz
rails-90bb874ea15a16d3fa363a6f5b2fe7302c913f7b.tar.bz2
rails-90bb874ea15a16d3fa363a6f5b2fe7302c913f7b.zip
Fix boolean column migration script
Diffstat (limited to 'guides/source/configuring.md')
-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