Sha256: f5a696fcf47c4b07deb82d5447586e8657bc2618060cc6c69ce53f31de3f413d
Contents?: true
Size: 310 Bytes
Versions: 7
Compression:
Stored size: 310 Bytes
Contents
FactoryBot.define do factory :profile, :class => Profile do |f| f.user_group_id {UserGroup.first.id} f.required_role_id {Role.where(name: 'User').first.id} f.sequence(:user_number){|n| "user_number_#{n}"} f.library_id 2 f.locale "ja" f.user_id {FactoryBot.create(:user).id} end end
Version data entries
7 entries across 7 versions & 4 rubygems