garaio/data-import — Issue #9: lookup tables for specific fields
Author: senny
Created: 2012-01-05 13:57:17+00:00
State: open
Labels: @feature

It would be nice to create lookup tables on specific fields when migrating. these lookup tables could then be used to get the id of a migrated record.

```ruby
import 'Organizations' do
lookup_table_on :code
end

mapping 'Code' do |context, value|
{:org_id => context.definition('Organizations').id_for(:code, value)}
end
```