Move seeding data
This commit is contained in:
parent
bc3fd31c1f
commit
277fad827d
6 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
Reference in a new issue