{"issue":{"milestone":null,"title":"Add delete methods for each model","created_at":"2011-12-23T20:08:05Z","user":{"login":"driki","id":22250,"url":"https://api.github.com/users/driki","avatar_url":"https://secure.gravatar.com/avatar/036533513e83b7611ddd2092f72e2fab?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"036533513e83b7611ddd2092f72e2fab"},"updated_at":"2011-12-30T19:54:05Z","labels":[{"name":"Top Priority","url":"https://api.github.com/repos/driki/Budget-Hero/labels/Top+Priority","color":"ededed"}],"state":"open","id":2649959,"closed_at":null,"html_url":"https://github.com/driki/Budget-Hero/issues/31","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"","number":31,"url":"https://api.github.com/repos/driki/Budget-Hero/issues/31","comments":1,"assignee":{"login":"jasonhowes","id":490537,"url":"https://api.github.com/users/jasonhowes","avatar_url":"https://secure.gravatar.com/avatar/d9cb7cc0f011291a0b4c1cacef16208d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"d9cb7cc0f011291a0b4c1cacef16208d"}},"comment":{"created_at":"2011-12-30T19:54:05Z","user":{"login":"driki","id":22250,"url":"https://api.github.com/users/driki","avatar_url":"https://secure.gravatar.com/avatar/036533513e83b7611ddd2092f72e2fab?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"036533513e83b7611ddd2092f72e2fab"},"updated_at":"2011-12-30T19:54:05Z","id":3316467,"body":"Paranoia\r\n\r\nSometimes...most times...you don't really want to destroy a row in the database, you just want to mark it as deleted so that you can restore it later if need be. This is aptly-named Paranoia and DataMapper has basic support for this baked right in. Just declare a property and assign it a type of Types::ParanoidDateTime or Types::ParanoidBoolean:\r\n\r\n1 property :deleted_at, ParanoidDateTime","url":"https://api.github.com/repos/driki/Budget-Hero/issues/comments/3316467"},"action":"created"}