1
0
Fork 0

Move seeding data

This commit is contained in:
Alex Kotov 2019-10-02 03:13:01 +05:00
parent bc3fd31c1f
commit 277fad827d
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
6 changed files with 1 additions and 1 deletions

View file

@ -4,7 +4,7 @@ require 'csv'
def csv_foreach(filename, &block) def csv_foreach(filename, &block)
CSV.foreach( CSV.foreach(
Rails.root.join('config', 'seeds', "#{filename}.csv"), Rails.root.join('db', 'data', "#{filename}.csv"),
col_sep: '|', col_sep: '|',
&block &block
) )