public
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.