easy to make fake data
This commit is contained in:
parent
25324809bb
commit
796dcc4dc6
|
@ -2,6 +2,9 @@ require 'factory_girl'
|
||||||
require 'faker'
|
require 'faker'
|
||||||
require 'json'
|
require 'json'
|
||||||
|
|
||||||
|
WritingJournal.destroy_all
|
||||||
|
CoAuthor.destroy_all
|
||||||
|
|
||||||
data = File.read("db/data")
|
data = File.read("db/data")
|
||||||
data_json = JSON.parse(data)
|
data_json = JSON.parse(data)
|
||||||
|
|
||||||
|
|
Reference in New Issue