easy to make fake data

This commit is contained in:
Rueshyna 2012-11-28 15:20:02 +08:00
parent 25324809bb
commit 796dcc4dc6
1 changed files with 3 additions and 0 deletions

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)