{"id":15587671,"url":"https://github.com/sunny/rateaux","last_synced_at":"2025-04-24T04:49:20.588Z","repository":{"id":8463036,"uuid":"10060450","full_name":"sunny/rateaux","owner":"sunny","description":"A few useful rake tasks for Rails","archived":false,"fork":false,"pushed_at":"2025-03-20T19:23:57.000Z","size":96,"stargazers_count":17,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-24T04:49:15.163Z","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/sunny.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"MIT-LICENSE","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}},"created_at":"2013-05-14T17:12:39.000Z","updated_at":"2025-03-20T19:23:59.000Z","dependencies_parsed_at":"2025-03-07T09:31:44.682Z","dependency_job_id":"2ca70d1a-d6ef-422c-9768-7a8169170d24","html_url":"https://github.com/sunny/rateaux","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunny%2Frateaux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunny%2Frateaux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunny%2Frateaux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunny%2Frateaux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunny","download_url":"https://codeload.github.com/sunny/rateaux/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250566445,"owners_count":21451230,"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":[],"created_at":"2024-10-02T22:02:50.572Z","updated_at":"2025-04-24T04:49:20.582Z","avatar_url":"https://github.com/sunny.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rateaux\n\nThis is a collection of useful Rake tasks for Ruby on Rails applications.\n\n![Photo of an old wooden Rake on top of hay](https://github.com/user-attachments/assets/a1549ae8-a20f-4c87-a634-4298223bbb6e)\n\n_[Hay Rake](https://www.flickr.com/photos/49708076@N05/23047850374/) photo by Larry Lamb_\n\n## Install\n\nAdd these lines to your app's Gemfile:\n\n```ruby\n# Rake tasks for Rails\ngem \"rateaux\"\n```\n\nThen call `bundle install`.\n\n\n## Tasks\n\n### DB Truncate\n\nDelete all data from the current database.\n\n```sh\n$ rake db:truncate\n```\n\n### DB Drop tables\n\nDelete all data and tables from the current database. This is similar to\n`db:drop` but it does not drop the database itself.\n\n```sh\n$ rake db:drop_tables\n```\n\n### Checkout\n\nRemove migrations then checkout a git branch.\n\n```sh\n$ rake checkout new_branch_name\n```\n\nThis will:\n\n1. Roll back any migrations on your current branch which do not exist on the\n   other branch\n2. Discard any changes to the db/schema.rb file\n3. Check out the other branch\n4. Run any new migrations existing in the other branch\n5. Update your test database\n\n### Cache clear\n\nEmpty the Rails cache store.\n\n```sh\n$ rake cache:clear\n```\n\n### Sidekiq flush\n\nEmpty Sidekiq’s queues.\n\n```sh\n$ rake sidekiq:flush\n```\n\n### Assets Copy Non Digested\n\nCopy assets files with a digest (for example `application-d45e…565.css`)\nto their non-digested form (for example `application.css`).\n\n```sh\n$ rake assets:copy_non_digested\n```\n\n### DB schema view\n\nView the database structure.\n\n```sh\n$ rake db:schema:view\n```\n\n### Frozen string literal\n\nAdd the `# frozen_string_literal: true` header to all Ruby files in the project.\n\n```sh\n$ rake add_frozen_string_literal_headers\n```\n\n## The name\n\nIn French _rateaux_ means _rakes_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunny%2Frateaux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunny%2Frateaux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunny%2Frateaux/lists"}