We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User3件くらい Event10件くらい Participant10件くらい
The text was updated successfully, but these errors were encountered:
https://github.com/ffaker/ffaker
Sorry, something went wrong.
group :development, :test do gem "debug", platforms: %i[ mri windows ] gem 'ffaker' end
user1 = User.create!( name: FFaker::Name.name, email: "[email protected]", password: "password", password_confirmation: "password" ) user2 = User.create!( name: FFaker::Name.name, email: "[email protected]", password: "password", password_confirmation: "password" ) user3 = User.create!( name: FFaker::Name.name, email: "[email protected]", password: "password", password_confirmation: "password" ) 10.times do |i| organizer = [user1, user2, user3].sample join_member = [user1, user2, user3].reject {|u| u == organizer }.sample event = Event.create!( start_at: Time.current, end_at: Time.current.tomorrow, location: "mitaka", name: "mitaka.rb\##{i+1}", organizer_id: organizer.id, max_size: 10, budget: "5000", description: "Mitaka ruby" ) Participation.create!( event_id: event.id, user_id: join_member.id ) end
No branches or pull requests
User3件くらい
Event10件くらい
Participant10件くらい
The text was updated successfully, but these errors were encountered: