Files
puzzle-scoreboard/spec/factories/contests.rb
sto cd41d83429
All checks were successful
CI / scan_ruby (push) Successful in 18s
CI / scan_js (push) Successful in 15s
CI / lint (push) Successful in 15s
CI / test (push) Successful in 36s
Fix rspec as is
#18
2025-12-03 15:42:45 +01:00

37 lines
1015 B
Ruby

# == Schema Information
#
# Table name: contests
#
# id :integer not null, primary key
# allow_registration :boolean default(FALSE)
# code :string
# duration :string
# duration_seconds :integer
# lang :string default("en")
# name :string
# offline_form :boolean default(FALSE)
# public :boolean default(FALSE)
# ranking_mode :string
# slug :string
# team :boolean default(FALSE)
# created_at :datetime not null
# updated_at :datetime not null
# user_id :integer not null
#
# Indexes
#
# index_contests_on_slug (slug) UNIQUE
# index_contests_on_user_id (user_id)
#
# Foreign Keys
#
# user_id (user_id => users.id)
#
FactoryBot.define do
factory :contest do
name { Faker::Company.unique.name }
duration { "2:00" }
ranking_mode { "actual" }
end
end