garaio/data-import — Issue #16: Seed data during import
Author: felideon
Created: 2012-01-16 17:19:23+00:00
State: open

One thing I found myself wanting was the ability to seed data for new
columns during a migration, that did not depend on any source/legacy
columns. For example:

```ruby
mapping 'memberid' do |context, id|
{ :account => id, :zone_type => "forward" }
```

In this case zone_type is a new column and for this particular import
block it's always going to be the string "forward" and it has nothing
to do with memberid. I just used an arbitrary mapping I had and added
this additional seed value. Maybe something like:

```ruby
seed => { :zone_type => "forward" }
```

Or something to that effect.