{"id":15353783,"url":"https://github.com/westonganger/rails_uuid_to_integer_primary_keys","last_synced_at":"2025-04-15T05:57:35.362Z","repository":{"id":66556531,"uuid":"338402700","full_name":"westonganger/rails_uuid_to_integer_primary_keys","owner":"westonganger","description":"A Rails Migration to convert your UUID primary keys back to integer / bigint primary keys","archived":false,"fork":false,"pushed_at":"2024-12-31T08:17:16.000Z","size":59,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T05:57:29.429Z","etag":null,"topics":["database-migration","rails","ruby","uuid"],"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/westonganger.png","metadata":{"files":{"readme":"README.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-12T18:40:15.000Z","updated_at":"2024-12-18T21:54:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"b6cfd355-1e9a-4231-b1b4-02ad5c29b226","html_url":"https://github.com/westonganger/rails_uuid_to_integer_primary_keys","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"49e056241b791bce2f56132d3bc351de6c0ceee1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Frails_uuid_to_integer_primary_keys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Frails_uuid_to_integer_primary_keys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Frails_uuid_to_integer_primary_keys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westonganger%2Frails_uuid_to_integer_primary_keys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/westonganger","download_url":"https://codeload.github.com/westonganger/rails_uuid_to_integer_primary_keys/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249016321,"owners_count":21198832,"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":["database-migration","rails","ruby","uuid"],"created_at":"2024-10-01T12:15:11.538Z","updated_at":"2025-04-15T05:57:35.344Z","avatar_url":"https://github.com/westonganger.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rails UUID to Integer Primary Keys\n\nSo you inherited a Rails app that is currently using UUID’s but now its causing size or speed problems with your app.\n\nNow its time to convert your UUID primary keys back to integer / bigint primary keys, however it is not trivial to do this because all references / belongs_to associations must be kept intact.\n\nI have gone through the hard work of creating a migration that is able to handle this for you mostly automatically.\n\n# Requirements\n\n- All models to convert must inherit from ApplicationRecord\n- All `belongs_to` or `has_and_belongs_to_many` must be correctly defined so that reference keys can be located and updated.\n\n# Migration\n\n- [migration.rb](./migration.rb)\n\n# Credits\n\nCreated by [Weston Ganger](https://westonganger.com) - [@westonganger](https://github.com/westonganger)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwestonganger%2Frails_uuid_to_integer_primary_keys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwestonganger%2Frails_uuid_to_integer_primary_keys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwestonganger%2Frails_uuid_to_integer_primary_keys/lists"}