From 796dcc4dc62198286409024a0fee958dd2a65e6d Mon Sep 17 00:00:00 2001 From: Rueshyna Date: Wed, 28 Nov 2012 15:20:02 +0800 Subject: [PATCH] easy to make fake data --- db/seeds.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/db/seeds.rb b/db/seeds.rb index 3ecb2b43..00825e32 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -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)