{"id":15512872,"url":"https://github.com/kirillshevch/vandal","last_synced_at":"2025-09-17T18:31:05.152Z","repository":{"id":35029758,"uuid":"156992845","full_name":"kirillshevch/vandal","owner":"kirillshevch","description":"ActiveRecord force destroy records with all related associations.","archived":false,"fork":false,"pushed_at":"2023-01-19T13:10:24.000Z","size":529,"stargazers_count":7,"open_issues_count":8,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-29T21:42:24.310Z","etag":null,"topics":["activerecord","database","debugging","development","rails","testing"],"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/kirillshevch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-10T15:15:36.000Z","updated_at":"2019-11-15T09:43:12.000Z","dependencies_parsed_at":"2023-02-11T00:35:24.937Z","dependency_job_id":null,"html_url":"https://github.com/kirillshevch/vandal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirillshevch%2Fvandal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirillshevch%2Fvandal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirillshevch%2Fvandal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirillshevch%2Fvandal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kirillshevch","download_url":"https://codeload.github.com/kirillshevch/vandal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233414716,"owners_count":18672878,"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","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":["activerecord","database","debugging","development","rails","testing"],"created_at":"2024-10-02T09:53:54.448Z","updated_at":"2025-09-17T18:30:59.758Z","avatar_url":"https://github.com/kirillshevch.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"[![Gem Version](https://badge.fury.io/rb/vandal.svg)](https://badge.fury.io/rb/vandal)\n[![CircleCI](https://circleci.com/gh/kirillshevch/vandal.svg?style=svg)](https://circleci.com/gh/kirillshevch/vandal)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/kirillshevch/vandal/raw/master/vandal.jpg?sanitize=true\" width=\"65%\" alt=\"Vandal Logo\"/\u003e\n\u003c/p\u003e\n\nA small gem that helps to *delete an ActiveRecord instance or collection with associations* (skipping callbacks or validations) \n\n## Installation\n\nAdd this line to your application's Gemfile and then execute `bundle install`\n\n```ruby\ngem 'vandal'\n```\n\n## Usage\n\nVandal gem adds 2 methods to `ActiveRecord::Base`\n\n## #vandal_destroy\n\nDelete an ActiveRecord instance with associations even if the callbacks return false or rescue error.\n\n```ruby\nclass User\n  has_many :followers # Does not even contain dependent: :destroy\nend\n\nUser.find_by(id: 1).vandal_destroy\n```\n\nFollowers will deleted along with `User`.\n\n## #vandal_destroy_all\n\nApplies `vandal_destroy` for ActiveRecord collection\n\n```ruby\nUser.all.vandal_destroy_all\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/kirillshevch/vandal.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirillshevch%2Fvandal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkirillshevch%2Fvandal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirillshevch%2Fvandal/lists"}