-
Notifications
You must be signed in to change notification settings - Fork 72
Export facilities
Datashift supports two styles of csv or excel creation:
- generate for creating empty templates that represent the columns of your model and associations
- export, unsurprisingly this one does a full data export.
Creates a simple Template, containing simply the models description i.e a set of column headings.
You can specify whether to include a model's associations or not.
This is a simple and quick way to see what columns and data requirements a model has, and make a good basis for migrating data from another system. Data can easily be mapped and copied from an external system into the appropriate column in the template. The spreadsheet can then be directly imported into the destination system.
Examples of creating Templates
ruby bundle exec thor datashift:generate:excel --model Spree::User --result spree_user_template.xls
Performs a full export of a models data. You can specify whether to include a model's associations or not.