Loading development environment (Rails 3.2.8) | |
1.9.3p194 :001 > Foo.unscoped.all.count | |
Foo Load (0.5ms) SELECT "foos".* FROM "foos" | |
=> 2 | |
1.9.3p194 :002 > Foo.first.destroy | |
Foo Load (0.2ms) SELECT "foos".* FROM "foos" WHERE "foos"."reviewed" = 't' LIMIT 1 | |
(0.1ms) begin transaction | |
SQL (0.5ms) DELETE FROM "foos" WHERE "foos"."id" = ? [["id", 9]] | |
(5.5ms) commit transaction | |
=> #<Foo id: 9, reviewed: true, created_at: "2012-09-27 04:03:08", updated_at: "2012-09-27 04:03:08"> | |
1.9.3p194 :003 > Foo.unscoped.all.count | |
Foo Load (0.2ms) SELECT "foos".* FROM "foos" | |
=> 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment