split db/seeds.rb file to local plugin and done journal
This commit is contained in:
1 parent
c55f64f3c6
commit
81725ed942
5 files changed
+28
-55
No files matched your search
+1
-51
@@ -5,54 +5,4 @@ FactoryGirl.definition_file_paths = Dir["#{Rails.root}/vendor/built_in_modules/*
|
||||
|
||||
FactoryGirl.find_definitions
|
||||
|
||||
|
||||
ConferenceCoAuthorRelation.destroy_all
|
||||
ConferenceCoAuthor.destroy_all
|
||||
ConferencePaperType.destroy_all
|
||||
WritingConferenceFile.destroy_all
|
||||
WritingConference.destroy_all
|
||||
#Dir[Rails.root.join("spec/factories/*.rb")].each {|f| require f}
|
||||
|
||||
|
||||
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 "Success!"
|
||||
|
||||
# =======
|
||||
#
|
||||
#CoAuthorRelation.destroy_all
|
||||
#CoAuthor.destroy_all
|
||||
#JournalLevelType.destroy_all
|
||||
#WritingJournalFile.destroy_all
|
||||
#WritingJournal.destroy_all
|
||||
#
|
||||
#10.size.times do
|
||||
# FactoryGirl.create(:journal_level)
|
||||
#end
|
||||
#
|
||||
#10.times do
|
||||
# FactoryGirl.create(:journal_relation)
|
||||
#end
|
||||
#
|
||||
#50.times do
|
||||
# FactoryGirl.create(:journal)
|
||||
#end
|
||||
#
|
||||
#50.times do
|
||||
# FactoryGirl.create(:journal_co_author)
|
||||
#end
|
||||
#puts "Success!"
|
||||
Dir["#{Rails.root}/vendor/built_in_modules/*/db/seeds.rb"].each { |seed| load seed }
|
||||
Reference in new issue
Block a user