{"id":15405609,"url":"https://github.com/krisleech/seeds","last_synced_at":"2026-01-24T08:02:36.832Z","repository":{"id":3192259,"uuid":"4225112","full_name":"krisleech/seeds","owner":"krisleech","description":"Generate seeds.rb file from existing database tables","archived":false,"fork":false,"pushed_at":"2012-05-04T13:42:26.000Z","size":106,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T15:57:42.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":false,"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/krisleech.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2012-05-04T13:36:46.000Z","updated_at":"2014-11-25T04:58:14.000Z","dependencies_parsed_at":"2022-09-12T02:11:18.255Z","dependency_job_id":null,"html_url":"https://github.com/krisleech/seeds","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/krisleech%2Fseeds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisleech%2Fseeds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisleech%2Fseeds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krisleech%2Fseeds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krisleech","download_url":"https://codeload.github.com/krisleech/seeds/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239734391,"owners_count":19688255,"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-10-01T16:17:29.777Z","updated_at":"2026-01-03T18:30:14.242Z","avatar_url":"https://github.com/krisleech.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Seeds\n\nA feature filled way to generate your db/seeds.rb file from your existing database tables.\nI will be adding many more features and updating the way that the current features work very soon.\nBut for now, this should be a nice and easy way to generate a seeds.rb file!\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'seeds'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install seeds\n\n## Usage\n\nNo need to fire up the rails console anymore, this baby runs as a rake task!\nThe syntax is a little goofy because of the way rake takes in arguments,\nyou are basically passing the entire hash as an argument, then it gets\neval'd before being passed on to the Seeds Module.\n\n\nTo create a seeds.rb file that includes data from all of your Models\n\n    $ rake seeds:sow\n    \nTo only include certain Models (this should work using table names also, but it's not tested yet)\n\n    $ rake seeds:sow['{:include =\u003e \"ModelName,ModelName\"}']\n\nTo only exclude certain Models (this should work using table names also, but it's not tested yet)\n\n    $ rake seeds:sow['{:exclude =\u003e \"Modelname,ModelName\"}']\n    \nTo drop specific fields from all Model dumps\n\n    $ rake seeds:sow['{:drop_fields =\u003e \"Field1,Field2\"}']\n    \nTo drop a predefined \"common\" set of fields (id,created_at,updated_at)\n\n    $ rake seeds:sow['{:drop_fields_common =\u003e true}']\n    \nExample sending multiple options\n\n    $ rake seeds:sow['{:drop_fields_common =\u003e true, :drop_fields =\u003e \"Field1,Field2\", :include =\u003e \"ModelName,ModelName\"}']\n    \n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Added some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrisleech%2Fseeds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrisleech%2Fseeds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrisleech%2Fseeds/lists"}