{"id":29955004,"url":"https://github.com/foca/migrake-sql_store","last_synced_at":"2025-10-20T10:13:08.745Z","repository":{"id":3015315,"uuid":"4034612","full_name":"foca/migrake-sql_store","owner":"foca","description":"An extension for migrake that stores the run tasks in a SQL table instead of the filesystem, useful for heroku and similar hosts","archived":false,"fork":false,"pushed_at":"2012-04-16T00:51:10.000Z","size":96,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-24T19:44:51.014Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foca.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-04-15T20:01:38.000Z","updated_at":"2014-01-02T03:04:03.000Z","dependencies_parsed_at":"2022-09-18T06:47:18.149Z","dependency_job_id":null,"html_url":"https://github.com/foca/migrake-sql_store","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/foca/migrake-sql_store","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foca%2Fmigrake-sql_store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foca%2Fmigrake-sql_store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foca%2Fmigrake-sql_store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foca%2Fmigrake-sql_store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foca","download_url":"https://codeload.github.com/foca/migrake-sql_store/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foca%2Fmigrake-sql_store/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267459195,"owners_count":24090689,"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-07-28T02:00:09.689Z","response_time":68,"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":"2025-08-03T17:09:09.590Z","updated_at":"2025-10-20T10:13:03.722Z","avatar_url":"https://github.com/foca.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Migrake::SQLStore\n\n[![Build Status](https://secure.travis-ci.org/foca/migrake-sql_store.png?branch=master)](http://travis-ci.org/foca/migrake-sql_store)\n\nAn extension for [Migrake][migrake] that stores the rake tasks that you ran in a\nSQL database instead of the filesystem, useful for hosts like [Heroku][heroku]\nwhere you have a read-only filesystem.\n\n[migrake]: http://github.com/foca/migrake\n[heroku]:  http://heroku.com\n\n## Usage\n\nIn your Rakefile, instead of requiring `migrake`, require `migrake/sql_store`,\nand initialize the store with the URI to your database:\n\n``` ruby\nrequire \"migrake/sql_store\"\n\nMigrake.store = Migrake::SQLStore.new(\"postgres://foo:foo@localhost/database\")\n\nmigrake Set.new([\n  \"some_rake_task\",\n  \"another_rake_task\",\n  # etc, etc\n])\n```\n\nWhen running `rake migrake` (or `rake migrake:ready`), SQLStore will check for a\n`migrake_tasks` table. If it doesn't exist, it will create it transparently for\nyou.\n\nThis gem requires that you have the appropriate database adapter gems installed\nand available (e.g. added to your Gemfile). If the target database is\npostgresql, for example, make sure the `pg` is available in the environment\nwhere `rake migrake` will be run.\n\n## Heroku (or other envs which include `DATABASE_URL`)\n\nIf your ENV includes a `DATABASE_URL`, you don't need to do anything, as\nrequiring `migrake/sql_store` will, by default, attempt to connect to a database\nat that location, if the ENV key is set. So for Heroku, all you'd do is this:\n\n``` ruby\nrequire \"migrake/sql_store\"\n\nmigrake Set.new([\n  \"some_rake_task\",\n  \"another_rake_task\",\n  # etc, etc\n])\n```\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2012 [Nicolas Sanguinetti][me], with the support of [Cubox][cubox]\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n[me]:    http://nicolassanguinetti.info\n[cubox]: http://cuboxlabs.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoca%2Fmigrake-sql_store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoca%2Fmigrake-sql_store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoca%2Fmigrake-sql_store/lists"}