fixed empty db bug

This commit is contained in:
Rueshyna authored and chris committed 2012-12-07 04:21:27 +08:00
1 parent a84cb560a0
commit 1c7ddb4b29
6 files changed
+7 -5

No files matched your search

+7
View File
@@ -1,6 +1,11 @@
require 'factory_girl'
require 'faker'
CoAuthorRelation.destroy_all
CoAuthor.destroy_all
JournalLevelType.destroy_all
WritingJournalFile.destroy_all
WritingJournal.destroy_all
#Dir[Rails.root.join("spec/factories/*.rb")].each {|f| require f}
10.times do
@@ -18,3 +23,5 @@ end
50.times do
FactoryGirl.create(:co_author_candidate)
end
puts "Success!"