hitobito_lit/db/seeds/development/events.rb
Philipp Rothmann 135b14c868 init
2022-12-20 16:26:37 +01:00

14 lines
312 B
Ruby

# encoding: utf-8
require Rails.root.join('db', 'seeds', 'support', 'event_seeder')
srand(42)
seeder = EventSeeder.new
layer_types = Group.all_types.select(&:layer).collect(&:sti_name)
Group.where(type: layer_types).pluck(:id).each do |group_id|
5.times do
seeder.seed_event(group_id, :base)
end
end