done conferece seeds

This commit is contained in:
Rueshyna 2013-02-26 15:52:42 +08:00
parent 81725ed942
commit d0b54a4d6c
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
ConferenceCoAuthorRelation.destroy_all
ConferenceCoAuthor.destroy_all
ConferencePaperType.destroy_all
WritingConferenceFile.destroy_all
WritingConference.destroy_all
2.times do
FactoryGirl.create(:conference_paper_type)
end
10.times do
FactoryGirl.create(:conference_co_author_relation)
end
50.times do
FactoryGirl.create(:conference_co_author)
end
50.times do
FactoryGirl.create(:writing_conference)
end
puts "Conference sample data import success!"