From 277fad827d557962cbc82af9d7e10ecfcc3ac07b Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Wed, 2 Oct 2019 03:13:01 +0500 Subject: [PATCH] Move seeding data --- {config/seeds => db/data}/contact_networks.csv | 0 {config/seeds => db/data}/federal_subjects.csv | 0 {config/seeds => db/data}/org_unit_kinds.csv | 0 {config/seeds => db/data}/relation_statuses.csv | 0 {config/seeds => db/data}/relation_transitions.csv | 0 db/seeds.rb | 2 +- 6 files changed, 1 insertion(+), 1 deletion(-) rename {config/seeds => db/data}/contact_networks.csv (100%) rename {config/seeds => db/data}/federal_subjects.csv (100%) rename {config/seeds => db/data}/org_unit_kinds.csv (100%) rename {config/seeds => db/data}/relation_statuses.csv (100%) rename {config/seeds => db/data}/relation_transitions.csv (100%) diff --git a/config/seeds/contact_networks.csv b/db/data/contact_networks.csv similarity index 100% rename from config/seeds/contact_networks.csv rename to db/data/contact_networks.csv diff --git a/config/seeds/federal_subjects.csv b/db/data/federal_subjects.csv similarity index 100% rename from config/seeds/federal_subjects.csv rename to db/data/federal_subjects.csv diff --git a/config/seeds/org_unit_kinds.csv b/db/data/org_unit_kinds.csv similarity index 100% rename from config/seeds/org_unit_kinds.csv rename to db/data/org_unit_kinds.csv diff --git a/config/seeds/relation_statuses.csv b/db/data/relation_statuses.csv similarity index 100% rename from config/seeds/relation_statuses.csv rename to db/data/relation_statuses.csv diff --git a/config/seeds/relation_transitions.csv b/db/data/relation_transitions.csv similarity index 100% rename from config/seeds/relation_transitions.csv rename to db/data/relation_transitions.csv diff --git a/db/seeds.rb b/db/seeds.rb index 62809a5..0116599 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -4,7 +4,7 @@ require 'csv' def csv_foreach(filename, &block) CSV.foreach( - Rails.root.join('config', 'seeds', "#{filename}.csv"), + Rails.root.join('db', 'data', "#{filename}.csv"), col_sep: '|', &block )