1
0
Fork 0

Move seeds

This commit is contained in:
Alex Kotov 2019-09-19 08:21:29 +05:00
parent 358069eeea
commit 96a9f3f381
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
3 changed files with 4 additions and 2 deletions

View File

@ -2,8 +2,10 @@
require 'csv'
federal_subjects_filename = Rails.root.join 'config', 'federal_subjects.csv'
contact_networks_filename = Rails.root.join 'config', 'contact_networks.csv'
seeds_dirname = Rails.root.join 'config', 'seeds'
federal_subjects_filename = seeds_dirname.join 'federal_subjects.csv'
contact_networks_filename = seeds_dirname.join 'contact_networks.csv'
CSV.foreach(
federal_subjects_filename,