CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 24 Aug 2025 20:06:55 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090103234510
location: https://web.archive.org/web/20090103234510/https://github.com/jeremymcanally/seed/tree
server-timing: captures_list;dur=0.929577, exclusion.robots;dur=0.031486, exclusion.robots.policy;dur=0.014592, esindex;dur=0.016158, cdx.remote;dur=63.223034, LoadShardBlock;dur=367.118035, PetaboxLoader3.resolve;dur=254.566500, PetaboxLoader3.datanode;dur=64.228488
x-app-server: wwwb-app217
x-ts: 302
x-tr: 469
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app217; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 301
server: nginx
date: Sun, 24 Aug 2025 20:06:56 GMT
content-type: text/html; charset=utf-8
content-length: 115
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Sat, 03 Jan 2009 23:45:04 GMT
x-archive-orig-connection: close
x-archive-orig-set-cookie: _github_ses=BAh7ByIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7ADoOcmV0dXJuX3RvIhcvaW5ib3gvbmV3L3VqaWhpc2E%3D--645983cd320cc86f0ba553840636b6d76dda12f7; path=/; expires=Wed, 01 Jan 2020 08:00:00 GMT; HttpOnly
x-archive-orig-status: 301 Moved Permanently
location: https://web.archive.org/web/20090103234510/https://github.com/jeremymcanally/seed/tree/master
x-archive-orig-x-runtime: 807ms
x-archive-orig-cache-control: no-cache
x-archive-orig-content-length: 115
cache-control: max-age=1800
memento-datetime: Sat, 03 Jan 2009 23:45:10 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sat, 26 Apr 2008 22:03:05 GMT", ; rel="prev memento"; datetime="Thu, 26 Jun 2008 03:31:36 GMT", ; rel="memento"; datetime="Sat, 03 Jan 2009 23:45:10 GMT", ; rel="last memento"; datetime="Sat, 03 Jan 2009 23:45:10 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_7_20090103234219_crawl108-c/52_7_20090103234225_crawl103.arc.gz
server-timing: captures_list;dur=0.445481, exclusion.robots;dur=0.016000, exclusion.robots.policy;dur=0.007726, esindex;dur=0.010598, cdx.remote;dur=51.628741, LoadShardBlock;dur=357.468439, PetaboxLoader3.datanode;dur=234.239116, PetaboxLoader3.resolve;dur=372.685796, load_resource;dur=369.624639
x-app-server: wwwb-app217
x-ts: 301
x-tr: 807
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 24 Aug 2025 20:06:58 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Sat, 03 Jan 2009 23:45:10 GMT
x-archive-orig-connection: close
x-archive-orig-set-cookie: _github_ses=BAh7BzoOcmV0dXJuX3RvIhcvaW5ib3gvbmV3L3VqaWhpc2EiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhhc2h7AAY6CkB1c2VkewA%3D--7a3e0dcad1e0f1b648ff0cd53b7c1c4f4b111ab8; path=/; expires=Wed, 01 Jan 2020 08:00:00 GMT; HttpOnly
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 1067ms
x-archive-orig-etag: "1071a0edb0344fb494e4e5255e77031e"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 19694
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sat, 03 Jan 2009 23:45:10 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sat, 26 Apr 2008 22:03:05 GMT", ; rel="prev memento"; datetime="Sat, 06 Dec 2008 04:03:24 GMT", ; rel="memento"; datetime="Sat, 03 Jan 2009 23:45:10 GMT", ; rel="next memento"; datetime="Mon, 05 Jan 2009 08:18:08 GMT", ; rel="last memento"; datetime="Wed, 15 Apr 2009 08:09:44 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_7_20090103234219_crawl108-c/52_7_20090103234225_crawl103.arc.gz
server-timing: captures_list;dur=0.442872, exclusion.robots;dur=0.014776, exclusion.robots.policy;dur=0.006797, esindex;dur=0.009043, cdx.remote;dur=7.485552, LoadShardBlock;dur=1142.637029, PetaboxLoader3.datanode;dur=862.487361, PetaboxLoader3.resolve;dur=311.748886, load_resource;dur=70.200741
x-app-server: wwwb-app217
x-ts: 200
x-tr: 1275
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
jeremymcanally's seed at master — GitHub
We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Description: | A plugin for Rails that will generate seed data for you or let you load it from Ruby code or from YAML/CSV/XML files. |
Clone URL: |
git://github.com/jeremymcanally/seed.git
Give this clone URL to anyone.
git clone git://github.com/jeremymcanally/seed.git
|

Jeremy McAnally (author)
Mon Mar 31 19:10:19 -0700 2008
seed /
name | age | message | |
---|---|---|---|
![]() |
CHANGELOG | Mon Mar 31 19:10:19 -0700 2008 | Much improved README, and added CHANGELOG and T... [Jeremy McAnally] |
![]() |
MIT-LICENSE | Sun Mar 30 22:11:57 -0700 2008 | First commit [Jeremy McAnally] |
![]() |
README | Mon Mar 31 19:10:19 -0700 2008 | Much improved README, and added CHANGELOG and T... [Jeremy McAnally] |
![]() |
Rakefile | Sun Mar 30 22:11:57 -0700 2008 | First commit [Jeremy McAnally] |
![]() |
TODO | Mon Mar 31 19:10:19 -0700 2008 | Much improved README, and added CHANGELOG and T... [Jeremy McAnally] |
![]() |
init.rb | Sun Mar 30 22:11:57 -0700 2008 | First commit [Jeremy McAnally] |
![]() |
install.rb | Sun Mar 30 22:11:57 -0700 2008 | First commit [Jeremy McAnally] |
![]() |
lib/ | Mon Mar 31 19:10:19 -0700 2008 | Much improved README, and added CHANGELOG and T... [Jeremy McAnally] |
![]() |
tasks/ | Mon Mar 31 19:10:19 -0700 2008 | Much improved README, and added CHANGELOG and T... [Jeremy McAnally] |
![]() |
test/ | Mon Mar 31 19:10:19 -0700 2008 | Much improved README, and added CHANGELOG and T... [Jeremy McAnally] |
![]() |
uninstall.rb | Sun Mar 30 22:11:57 -0700 2008 | First commit [Jeremy McAnally] |
README
Seed ==== A plugin to help with generating and/or inserting seed data into your database. Seed will generate data for you or load it from fixtures or arbitrary Yaml, CSV, or (eventually) XML files. The basic workflow goes like this: 1. Create seed files. These live in db/seeds/ and are named for the tables of your models, like +Person+ (model), +people+ (table) would yield +people_seed.rb+. 2. Create a class named for the file (+people_seed.rb+ would have +PeopleSeed+) that inherits from +Seed::Planter+. 3. Fill in your directives for attributes or file loads, or you can leave it empty and Seed will enumerate your columns and generate data for you. You can also generate static versions of the seeds for your current models using the db:seeds:generate Rake task. So, let's say you have a model +User+, with attributes +username+ (string), +password+ (string), +email_address+ (string), favorite_quote (string), and administrator (boolean). To get a basic seed file, you need to execute <tt>rake db:seeds:generate</tt>. This task will yield a file like this: class UsersSeed < Seed::Planter attribute :username, :string attribute :password, :string attribute :email_address, :string attribute :favorite_quote, :string attribute :adminstrator, :boolean end Now, since we have a few special fields, we can use Seed's special types for +username+, +password+, and +email_address+. class UsersSeed < Seed::Planter attribute :username, :username attribute :password, :password attribute :email_address, :email attribute :favorite_quote, :string attribute :adminstrator, :boolean end This will generate proper data (for example, "jmcanally" rather than "Lorem ispum dolormet" for username). You can also skip specifying a type and provide the data for the field in a +Proc+. For example, if you wanted to have some specialized logic for setting the value of a field: class JobsSeed < Seed::Planter attribute :description, :string attribute :script, Proc { ['upload', 'update', 'find_files'].sort { rand(3) - 1 }[0] } end You can also call methods from the seed class in the +Proc+ if you'd like (direct support for method class on the seed class will be added soon). Examples ======== # db/seeds/products_seed.rb class ProductsSeed < Seed::Planter attribute :name, :string # Address attribute types are special and generate # proper data. attribute :address, :address attribute :email, proc { "test@example.com" } end # db/seeds/people_seed.rb class PeopleSeed < Seed::Planter # Tells Seed that you want to load seed data from # the file db/seeds/people.yml loads_from "people.yml" end # db/seeds/things_seed.rb class ThingsSeed < Seed::Planter # Tells Seed that you want to load seed data from # the fixtures file (test/fixtures/things.yml) loads_from :fixtures end Copyright (c) 2008 Jeremy McAnally, released under the MIT license
This feature is coming soon. Sit tight!