-
Notifications
You must be signed in to change notification settings - Fork 75
Mapping facilities
Song Yangyu edited this page Dec 28, 2016
·
3 revisions
Mapping templates facilitate the automatic conversion from one system's headings to the target Ruby DB headings.
Thor tasks are provided to generate these templates in the form the datashift loaders expect
thor help datashift:config:import
The basic idea is that a model and or spreadsheet can be specified, as either the source or destination of mappings.
Completely empty
thor datashift:config:import -r /softwaredev/myproject/my_migration_mapper.yaml
With an ActiveRecord model's fields as the destination
thor datashift:config:import -r /softwaredev/myproject/my_migration_mapper.yaml -m SomeModel