Worlds Bets
This commit is contained in:
20
spec/factories/world_bets.rb
Normal file
20
spec/factories/world_bets.rb
Normal file
@@ -0,0 +1,20 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: world_bets
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# bet :string
|
||||
# french_score :integer
|
||||
# name :string
|
||||
# score :integer
|
||||
# world_score :integer
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
FactoryBot.define do
|
||||
factory :world_bet do
|
||||
name { "MyString" }
|
||||
bet { "MyString" }
|
||||
score { 1 }
|
||||
end
|
||||
end
|
||||
16
spec/factories/world_countries.rb
Normal file
16
spec/factories/world_countries.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: world_countries
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# code :string not null
|
||||
# name :string not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
FactoryBot.define do
|
||||
factory :world_country do
|
||||
name { "MyString" }
|
||||
code { "MyString" }
|
||||
end
|
||||
end
|
||||
34
spec/factories/world_participants.rb
Normal file
34
spec/factories/world_participants.rb
Normal file
@@ -0,0 +1,34 @@
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: world_participants
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# final_result :integer
|
||||
# name :string not null
|
||||
# qualifier_result :integer
|
||||
# round :string not null
|
||||
# score :integer
|
||||
# semifinal_result :integer
|
||||
# username :string not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# world_country_id :integer not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_world_participants_on_world_country_id (world_country_id)
|
||||
#
|
||||
# Foreign Keys
|
||||
#
|
||||
# world_country_id (world_country_id => world_countries.id)
|
||||
#
|
||||
FactoryBot.define do
|
||||
factory :world_participant do
|
||||
username { "MyString" }
|
||||
name { "MyString" }
|
||||
world_country { nil }
|
||||
qualifier_result { 1 }
|
||||
semifinal_result { 1 }
|
||||
final_result { 1 }
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user