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)
|
||||
CSV.foreach(
|
||||
Rails.root.join('config', 'seeds', "#{filename}.csv"),
|
||||
Rails.root.join('db', 'data', "#{filename}.csv"),
|
||||
col_sep: '|',
|
||||
&block
|
||||
)
|
||||
|
|
Reference in a new issue