Skip to content

Generate sample data

Gabriel Augendre edited this page Aug 27, 2016 · 2 revisions

Connect with bash

heroku run bash

Open rails console

rails console

Start generating data 😄

3.times do
  begin
    FactoryGirl.create :membership
    rescue => _
  end
end
3500.times do
  begin
    FactoryGirl.create :student, :is_member, :with_department, :with_study_year
    rescue => _
  end
end
Clone this wiki locally