easy to make fake data

This commit is contained in:
Rueshyna committed 2012-11-28 15:20:02 +08:00
1 parent 25324809bb
commit 796dcc4dc6
1 file changed
+3
+3
View File
@@ -2,6 +2,9 @@ require 'factory_girl'
require 'faker'
require 'json'
WritingJournal.destroy_all
CoAuthor.destroy_all
data = File.read("db/data")
data_json = JSON.parse(data)