aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_record_postgresql.md
diff options
context:
space:
mode:
authorPatrick Copeland <pjscopeland@gmail.com>2016-06-16 08:54:26 +1200
committerPatrick Copeland <pjscopeland@gmail.com>2016-06-16 08:54:26 +1200
commitacf9391c98f89b1fe614804cdfb0da0cf7cb6e58 (patch)
tree2287b55517fe4ee899dfae18f0e753d7ce7e5648 /guides/source/active_record_postgresql.md
parentd4514e3be132014f49672abb3506f5551d50d1c3 (diff)
downloadrails-acf9391c98f89b1fe614804cdfb0da0cf7cb6e58.tar.gz
rails-acf9391c98f89b1fe614804cdfb0da0cf7cb6e58.tar.bz2
rails-acf9391c98f89b1fe614804cdfb0da0cf7cb6e58.zip
Example had results the wrong way round [ci skip]
Diffstat (limited to 'guides/source/active_record_postgresql.md')
-rw-r--r--guides/source/active_record_postgresql.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_record_postgresql.md b/guides/source/active_record_postgresql.md
index dee64e6439..d7e35490ef 100644
--- a/guides/source/active_record_postgresql.md
+++ b/guides/source/active_record_postgresql.md
@@ -503,9 +503,9 @@ second = Article.create! title: "Brace yourself",
status: "draft",
published_at: 1.month.ago
-Article.count # => 1
-first.archive!
Article.count # => 2
+first.archive!
+Article.count # => 1
```
NOTE: This application only cares about non-archived `Articles`. A view also