V2 Generating Seed-fu Data

V2Master

The Issue

It is necessary to generate seed-fu data from exeisting database to allow to use prepared data as source of a new configuration, e.g. for metro projects, or hydro projects, etc.

The Tool

A new rake task is created in lib/tasks/write_sample_data.rake, namely "generate_seed_fu".

Usage

The curly braces represents optional settings.

rake db:generate_seed_fu {CLASS_NAMES=class_name_1{,class_name_n}} {FIXTURE_PATH=fixture_path}

CLASS_NAMES - comma eparated list of classes to be exported into fixture files. Default = "Classification,ClassificationClass,FileTypeRef"

FIXTURE_PATH - relative or absolute path the files to bw written to. Relative path is realtive to Rails.root. Default = "db/fixtures/project"

V2GenerateSeedFu (last edited 2013-09-27 11:27:36 by 172)

Copyright 2008-2014, SoftXS GmbH, Switzerland