{"id":18656575,"url":"https://github.com/zendesk/zombie_record","last_synced_at":"2025-10-13T12:38:27.991Z","repository":{"id":12289225,"uuid":"14916247","full_name":"zendesk/zombie_record","owner":"zendesk","description":"A soft-delete library","archived":false,"fork":false,"pushed_at":"2025-05-26T13:19:23.000Z","size":118,"stargazers_count":12,"open_issues_count":3,"forks_count":2,"subscribers_count":409,"default_branch":"main","last_synced_at":"2025-10-10T01:41:36.554Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zendesk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-12-04T06:33:58.000Z","updated_at":"2025-05-26T13:19:26.000Z","dependencies_parsed_at":"2024-09-13T00:22:31.612Z","dependency_job_id":"8383ed8a-c5a4-4ff8-9a1c-a87db4d67336","html_url":"https://github.com/zendesk/zombie_record","commit_stats":{"total_commits":91,"total_committers":10,"mean_commits":9.1,"dds":0.5714285714285714,"last_synced_commit":"de95c389b659274524842331be109df098b1a1c0"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/zendesk/zombie_record","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zendesk%2Fzombie_record","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zendesk%2Fzombie_record/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zendesk%2Fzombie_record/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zendesk%2Fzombie_record/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zendesk","download_url":"https://codeload.github.com/zendesk/zombie_record/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zendesk%2Fzombie_record/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015058,"owners_count":26085643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T07:24:06.345Z","updated_at":"2025-10-13T12:38:27.945Z","avatar_url":"https://github.com/zendesk.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zombie Record\n\nAllows restoring your Active Records from the dead!\n\n[![Build Status](https://github.com/zendesk/zombie_record/workflows/CI/badge.svg)](https://github.com/zendesk/zombie_record/actions?query=workflow%3ACI)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'zombie_record'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install zombie_record\n\n## Usage\n\nSimply include the `ZombieRecord::Restorable` in your model class:\n\n```ruby\nclass Book \u003c ActiveRecord::Base\n  include ZombieRecord::Restorable\nend\n```\n\nZombie Record assumes the model's table has a `deleted_at` column with the `timestamp` type.\n\nYou can now delete and restore Book records:\n\n```ruby\nbook = Book.find(42)\nbook.destroy\n\nBook.find(42) # raises ActiveRecord::RecordNotFound.\n\nbook = Book.deleted.find(42)\nbook.restore!\n\nBook.find(42) # returns the Book record.\n```\n\n## Compatibility\n\nZombie Record only works with Active Record \u003e= 4. For Active Record 3 compatibility, check out the activerecord-3 branch of this gem.\n\n### Releasing a new version\nA new version is published to RubyGems.org every time a change to `version.rb` is pushed to the `main` branch.\nIn short, follow these steps:\n1. Update `version.rb`,\n2. update version in all `Gemfile.lock` files,\n3. merge this change into `main`, and\n4. look at [the action](https://github.com/zendesk/zombie_record/actions/workflows/publish.yml) for output.\n\nTo create a pre-release from a non-main branch:\n1. change the version in `version.rb` to something like `1.2.0.pre.1` or `2.0.0.beta.2`,\n2. push this change to your branch,\n3. go to [Actions → “Publish to RubyGems.org” on GitHub](https://github.com/zendesk/zombie_record/actions/workflows/publish.yml),\n4. click the “Run workflow” button,\n5. pick your branch from a dropdown.\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzendesk%2Fzombie_record","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzendesk%2Fzombie_record","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzendesk%2Fzombie_record/lists"}