Orbit/vendor/built_in_modules/personal_journal/db/seeds.rb

24 lines
430 B
Ruby
Raw Normal View History

JournalCoAuthorRelation.destroy_all
JournalCoAuthor.destroy_all
JournalLevelType.destroy_all
WritingJournalFile.destroy_all
WritingJournal.destroy_all
2013-03-14 09:43:01 +00:00
10.times do
FactoryGirl.create(:journal_level)
end
10.times do
FactoryGirl.create(:journal_co_author_relation)
end
2013-03-15 07:10:14 +00:00
50.times do
FactoryGirl.create(:writing_journal)
end
50.times do
FactoryGirl.create(:journal_co_author)
end
puts "Journal sample data import success!"