{"id":20918207,"url":"https://github.com/ryanberliner/rails-csv-seed","last_synced_at":"2026-04-21T18:03:18.882Z","repository":{"id":80877086,"uuid":"103940796","full_name":"RyanBerliner/rails-csv-seed","owner":"RyanBerliner","description":"Ruby on Rails task to backup all database records into csv files, and a seeds file to import those same records (say, as another user after checkout from version control).","archived":false,"fork":false,"pushed_at":"2018-10-24T02:27:47.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T16:49:13.868Z","etag":null,"topics":["backup","csv-backup","csv-files","database-record","ruby-on-rails","seed"],"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/RyanBerliner.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":"2017-09-18T13:12:16.000Z","updated_at":"2019-05-24T11:33:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"78e5d34a-1a3e-44bf-afef-5f8ecb8e508d","html_url":"https://github.com/RyanBerliner/rails-csv-seed","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/RyanBerliner%2Frails-csv-seed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanBerliner%2Frails-csv-seed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanBerliner%2Frails-csv-seed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RyanBerliner%2Frails-csv-seed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RyanBerliner","download_url":"https://codeload.github.com/RyanBerliner/rails-csv-seed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243312916,"owners_count":20271160,"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":["backup","csv-backup","csv-files","database-record","ruby-on-rails","seed"],"created_at":"2024-11-18T16:38:10.158Z","updated_at":"2025-12-11T19:03:43.796Z","avatar_url":"https://github.com/RyanBerliner.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rails CSV Seed\n\nThese files will allow you to backup your current database records into a csv files, and then run a database seed to import them.\n\n## How to use:\n\n1. copy and paste seeds.rb contents into db/seeds.rb\n2. place csv_backup.rake into lib/tasks/\n3. run 'rails csv_backup' in the terminal. this will put all your db records into csv files (one for each table) in db/csv_backups/\n4. to seed with your backed up data, run rails db:seed\n\nSnippets taken from all over the internet, handy when you have complex relationships and a lot of data because you can take a snapshot, check it into version control, and then import or re-seed without worrying about validations. You could easily modify to allow different seed sets like a 'dev' seed, a 'presentation' seed, stuff like that.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanberliner%2Frails-csv-seed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanberliner%2Frails-csv-seed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanberliner%2Frails-csv-seed/lists"}