orbit-basic/db/seeds.rb

21 lines
323 B
Ruby
Raw Normal View History

2012-11-15 17:53:17 +00:00
require 'factory_girl'
2012-11-26 16:05:04 +00:00
require 'faker'
2012-11-26 03:52:11 +00:00
2012-12-06 14:05:22 +00:00
#Dir[Rails.root.join("spec/factories/*.rb")].each {|f| require f}
2012-11-28 07:20:02 +00:00
2012-12-06 14:05:22 +00:00
10.times do
2012-12-05 18:10:32 +00:00
FactoryGirl.create(:journal_level)
end
10.times do
2012-12-06 14:05:22 +00:00
FactoryGirl.create(:relations)
2012-12-03 09:16:28 +00:00
end
2012-11-26 16:18:34 +00:00
2012-12-05 18:10:32 +00:00
50.times do
2012-11-26 16:18:34 +00:00
FactoryGirl.create(:paper_record)
2012-11-26 16:05:04 +00:00
end
2012-11-15 17:53:17 +00:00
2012-12-05 18:10:32 +00:00
50.times do
2012-11-26 16:05:04 +00:00
FactoryGirl.create(:co_author_candidate)
2012-11-15 17:53:17 +00:00
end