# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
#   Mayor.create(name: 'Emanuel', city: cities.first)
Tournament.create(
  name: 'Masters',
  slug: 'masters',
  starts_at: DateTime.new(2020, 4, 9).change(offset: '-500').beginning_of_day,
  ends_at: DateTime.new(2020, 4, 12).change(offset: '-500').end_of_day
)
Tournament.create(
  name: 'U.S. Open',
  slug: 'us',
  starts_at: DateTime.new(2020, 6, 18).change(offset: '-500').beginning_of_day,
  ends_at: DateTime.new(2020, 6, 21).change(offset: '-500').end_of_day
)
Tournament.create(
  name: 'The (British) Open',
  slug: 'british',
  starts_at: DateTime.new(2020, 7, 16).change(offset: '-500').beginning_of_day,
  ends_at: DateTime.new(2020, 7, 19).change(offset: '-500').end_of_day
)
Tournament.create(
  name: 'PGA Championship',
  slug: 'pga',
  starts_at: DateTime.new(2020, 5, 14).change(offset: '-500').beginning_of_day,
  ends_at: DateTime.new(2020, 5, 17).change(offset: '-500').end_of_day
)
