{"id":13879398,"url":"https://github.com/earaujoassis/sequel-seed","last_synced_at":"2026-03-13T18:37:23.837Z","repository":{"id":49276978,"uuid":"43442636","full_name":"earaujoassis/sequel-seed","owner":"earaujoassis","description":"A Sequel extension to make seeds/fixtures manageable like migrations","archived":false,"fork":false,"pushed_at":"2021-06-20T18:32:59.000Z","size":8563,"stargazers_count":24,"open_issues_count":3,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T05:19:53.723Z","etag":null,"topics":["fixtures","ruby","ruby-gem","seed","sequel","sequel-extension"],"latest_commit_sha":null,"homepage":"https://earaujoassis.github.io/sequel-seed/","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/earaujoassis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-30T15:56:27.000Z","updated_at":"2023-06-29T08:01:49.000Z","dependencies_parsed_at":"2022-08-19T07:21:33.827Z","dependency_job_id":null,"html_url":"https://github.com/earaujoassis/sequel-seed","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earaujoassis%2Fsequel-seed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earaujoassis%2Fsequel-seed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earaujoassis%2Fsequel-seed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earaujoassis%2Fsequel-seed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/earaujoassis","download_url":"https://codeload.github.com/earaujoassis/sequel-seed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244519108,"owners_count":20465588,"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":["fixtures","ruby","ruby-gem","seed","sequel","sequel-extension"],"created_at":"2024-08-06T08:02:19.693Z","updated_at":"2026-03-13T18:37:18.806Z","avatar_url":"https://github.com/earaujoassis.png","language":"Ruby","readme":"# Sequel::Seed [![Gem Version](https://badge.fury.io/rb/sequel-seed.svg)](http://badge.fury.io/rb/sequel-seed) [![Build Status](https://travis-ci.com/earaujoassis/sequel-seed.svg?branch=master)](https://travis-ci.com/earaujoassis/sequel-seed) [![codecov](https://codecov.io/gh/earaujoassis/sequel-seed/branch/master/graph/badge.svg)](https://codecov.io/gh/earaujoassis/sequel-seed) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/44395ec4d60f487586107bb81b0d2910)](https://www.codacy.com/app/earaujoassis/sequel-seed?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=earaujoassis/sequel-seed\u0026amp;utm_campaign=Badge_Grade)\n\n\u003e A Sequel extension to make seeds/fixtures manageable like migrations\n\n## Usage\n\nCreate a seed file (eg. `/path/to/seeds/20150928000000_initial_seed.rb`)\n\n```rb\nSequel.seed(:development, :test) do # Applies only to \"development\" and \"test\" environments\n  def run\n    [\n      ['USD', 'United States dollar'],\n      ['BRL', 'Brazilian real']\n    ].each do |abbr, name|\n      Currency.create abbr: abbr, name: name\n    end\n  end\nend\n```\n\nSet the environment\n\n```rb\nSequel::Seed.setup :development\n```\n\nLoad the extension\n\n```rb\nrequire 'sequel'\nrequire 'sequel/extensions/seed'\n\nSequel.extension :seed\n```\n\nApply the seeds/fixtures\n\n```rb\nDB = Sequel.connect(...)\nSequel::Seeder.apply(DB, \"/path/to/seeds\")\n```\n\nFor more information, please check the [project website](//earaujoassis.github.io/sequel-seed/).\n\n## Limitations\n\n- JSON and YAML files don't work with associations\n- Only timestamped seed/fixture files\n\n## What's next?\n\nWork with Model's associations inside JSON \u0026amp; YAML files\n\n## Support\n\nIf you need any help (or have found any bug \u0026#x1f41e;), please post it on\n[/issues](//github.com/earaujoassis/sequel-seed/issues). Thank you!\n\n## License\n\n[MIT License](http://earaujoassis.mit-license.org/) \u0026copy; Ewerton Carlos Assis\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fearaujoassis%2Fsequel-seed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fearaujoassis%2Fsequel-seed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fearaujoassis%2Fsequel-seed/lists"}