Class::DBI::DataMigration Getting Your Data From There to Here #24

Step 2: Specify a data structure that maps between source and target databases using YAML

---
# ...
      game_genre:
        target_key: game_type
        mapping:
          class: Class::DBI::DataMigration::Mapping::HasAToHasA
          config:
            target_class: New::DBI::GameType
            target_class_search_key: name
            matching_source_key: game_genre->game_genre_name
Copyright © 2005 Dan Friedman (Powered by Spork)