Project

csv_seed

0.0
No commit activity in last 3 years
No release in over 3 years
Import csv data to projects which are dependant on ActiveRecord.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.13
~> 10.0
~> 3.0

Runtime

~> 0.14
~> 0.0.1
 Project Readme

csv_seed

Import csv data to rails projects.

Why a new seed gem?

  • Csv is easier to read and update than fixtures or seeds.
  • Associations in csv tables can be applied to real databases. ...

How to use?

  1. gem install csv_seed
  2. prepare data. see test/dummy/db/seeds/*/*.csv
  3. run command 'csv_seed import --from source'. For example, 'csv_seed import --from case001', the csv files of the folder 'db/seeds/case001' should be imported.
If using Rails 5, 'optional: true' should be add to belongs_to associations.

to be continued...