fixed empty db bug
This commit is contained in:
1 parent
a84cb560a0
commit
1c7ddb4b29
6 files changed
+7
-5
No files matched your search
@@ -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!"
|
||||
Reference in new issue
Block a user