osem-fcy/spec/factories/splashpages.rb

52 lines
1.4 KiB
Ruby
Raw Normal View History

# frozen_string_literal: true
2021-02-20 09:57:27 -08:00
# == Schema Information
#
# Table name: splashpages
#
# id :bigint not null, primary key
# banner_photo_content_type :string
# banner_photo_file_name :string
# banner_photo_file_size :integer
# banner_photo_updated_at :datetime
# include_booths :boolean
# include_cfp :boolean default(FALSE)
# include_happening_now :boolean
2021-02-20 09:57:27 -08:00
# include_lodgings :boolean
# include_program :boolean
# include_registrations :boolean
# include_social_media :boolean
# include_sponsors :boolean
# include_tickets :boolean
# include_tracks :boolean
# include_venue :boolean
# public :boolean
# shuffle_highlights :boolean default(FALSE), not null
# created_at :datetime
# updated_at :datetime
# conference_id :integer
#
FactoryBot.define do
factory :splashpage do
2018-11-13 18:01:49 -08:00
public { false }
2016-04-30 17:56:23 +02:00
factory :full_splashpage do
2018-11-13 18:01:49 -08:00
public { true }
include_tracks { true }
include_program { true }
include_social_media { true }
include_venue { true }
include_tickets { true }
include_registrations { true }
include_sponsors { true }
include_lodgings { true }
include_cfp { true }
include_happening_now { true }
2016-04-30 17:56:23 +02:00
end
end
end