osem-fcy/spec/factories/cfps.rb

28 lines
699 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2021-02-20 09:57:27 -08:00
# == Schema Information
#
# Table name: cfps
#
# id :bigint not null, primary key
# cfp_type :string
# description :text
# enable_registrations :boolean default(FALSE)
# end_date :date not null
# start_date :date not null
# created_at :datetime
# updated_at :datetime
# program_id :integer
#
2014-04-30 14:48:20 +02:00
FactoryBot.define do
factory :cfp do
start_date { 1.day.ago }
2017-07-07 16:13:35 +03:00
end_date { 2.days.from_now }
cfp_type { 'events' }
description { 'This is a test description' }
enable_registrations { true }
2016-04-30 17:56:23 +02:00
program
end
end