Skip to content

Instantly share code, notes, and snippets.

@bencrouse
Created August 2, 2012 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bencrouse/3238600 to your computer and use it in GitHub Desktop.
Save bencrouse/3238600 to your computer and use it in GitHub Desktop.
Mongoid 3.0 Paranoia Problems
1.9.3p194 :006 > Catalog::Product.last
=> #<Catalog::Product _id: PROD9990094, _type: nil, deleted_at: nil, version: 1, created_at: 2012-07-31 20:43:50 UTC, updated_at: 2012-07-31 20:43:50 UTC, slug: "test-product-211", display_starts_at: 2012-07-31 20:43:50 UTC, display_ends_at: nil, purchase_starts_at: 2012-07-31 20:43:50 UTC, purchase_ends_at: nil, site_id: 1, name: "Test Product 211", sale_starts_at: nil, sale_ends_at: nil, display_price_range: false, packaged_product_ids: []>
1.9.3p194 :007 > Catalog::Product.last.destroy
=> 0
1.9.3p194 :008 > Catalog::Product.last
=> #<Catalog::Product _id: PROD9990094, _type: nil, deleted_at: 2012-08-02 16:46:50 UTC, version: 1, created_at: 2012-07-31 20:43:50 UTC, updated_at: 2012-07-31 20:43:50 UTC, slug: "test-product-211", display_starts_at: 2012-07-31 20:43:50 UTC, display_ends_at: nil, purchase_starts_at: 2012-07-31 20:43:50 UTC, purchase_ends_at: nil, site_id: 1, name: "Test Product 211", sale_starts_at: nil, sale_ends_at: nil, display_price_range: false, packaged_product_ids: []>
1.9.3p194 :009 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment