osem-fcy/spec/factories/event_users.rb

27 lines
505 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2021-02-20 09:57:27 -08:00
# == Schema Information
#
# Table name: event_users
#
# id :bigint not null, primary key
# comment :string
# event_role :string default("participant"), not null
# created_at :datetime
# updated_at :datetime
# event_id :integer
# user_id :integer
#
FactoryBot.define do
2014-06-23 19:07:50 +03:00
factory :event_user do
user
Hash[EventUser::ROLES].each_value do |role|
factory role do
event_role { role }
end
end
end
end