{"id":18978016,"url":"https://github.com/simplificator/flatten_migrations","last_synced_at":"2025-06-29T11:36:28.822Z","repository":{"id":1592454,"uuid":"2113074","full_name":"simplificator/flatten_migrations","owner":"simplificator","description":"Flatten migrations into one","archived":false,"fork":false,"pushed_at":"2023-05-22T18:48:41.000Z","size":6,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-10-31T13:46:04.504Z","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/simplificator.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2011-07-27T13:57:00.000Z","updated_at":"2020-12-01T14:28:20.000Z","dependencies_parsed_at":"2023-07-05T18:48:45.664Z","dependency_job_id":null,"html_url":"https://github.com/simplificator/flatten_migrations","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":0.09090909090909094,"last_synced_commit":"afaca1973bb269111143fe34f46edb60dd59d9c7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplificator%2Fflatten_migrations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplificator%2Fflatten_migrations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplificator%2Fflatten_migrations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplificator%2Fflatten_migrations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplificator","download_url":"https://codeload.github.com/simplificator/flatten_migrations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223708766,"owners_count":17189846,"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-11-08T15:31:51.311Z","updated_at":"2024-11-08T15:31:52.068Z","avatar_url":"https://github.com/simplificator.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Flatten migrations\n===================\n\nA gem that adds `rake db:flatten_migrations` to rake tasks in your rails project.\n\nRequirements\n------------\n\nYou have to ensure that your **schema format is set to :ruby** in configuration of\nyour project.  \nSo in your *project*/config/environments/*.rb you should have a line:  \n\n```\nconfig.active_record.schema_format = :ruby\n```\n\nInstallation\n------------\nJust add\n```\ngem 'flatten_migrations'\n```\nto development group in your Gemfile.\n\n\nHow does it work\n----------------\n\nThe task steps are as follows:\n\n  1. run pending migrations (rake db:migrate)\n  2. wipe out *project*/db/migrate direcotry\n  3. generate initial migration from existing database schema file\n     initial migration is assumed to be the one which was last executed\n  4. create auxiliary migration which adjusts the schema_migrations table\n  5. run the new migration\n\n**Both new migrations (*initial* and *auxiliary*) are irreversible.**\n\nYour database is safe and it should not erase any data except the schema_migrations table. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplificator%2Fflatten_migrations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplificator%2Fflatten_migrations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplificator%2Fflatten_migrations/lists"}