fixed empty db bug

This commit is contained in:
Rueshyna committed 2012-12-06 22:37:43 +08:00
1 parent 633a68675a
commit 749e794c30
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!"