2018-05-07 16:47:29 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2021-02-20 09:57:27 -08:00
|
|
|
# == Schema Information
|
|
|
|
|
#
|
|
|
|
|
# Table name: contacts
|
|
|
|
|
#
|
|
|
|
|
# id :bigint not null, primary key
|
|
|
|
|
# blog :string
|
|
|
|
|
# email :string
|
|
|
|
|
# facebook :string
|
|
|
|
|
# googleplus :string
|
|
|
|
|
# instagram :string
|
|
|
|
|
# mastodon :string
|
|
|
|
|
# social_tag :string
|
|
|
|
|
# sponsor_email :string
|
|
|
|
|
# twitter :string
|
|
|
|
|
# youtube :string
|
|
|
|
|
# created_at :datetime
|
|
|
|
|
# updated_at :datetime
|
|
|
|
|
# conference_id :integer
|
|
|
|
|
#
|
2018-09-03 20:44:39 +02:00
|
|
|
FactoryBot.define do
|
2016-04-30 17:56:23 +02:00
|
|
|
factory :contact do
|
|
|
|
|
social_tag { SecureRandom.urlsafe_base64(4) }
|
|
|
|
|
email { Faker::Internet.email }
|
|
|
|
|
sponsor_email { Faker::Internet.email }
|
|
|
|
|
facebook { Faker::Internet.url('facebook.com') }
|
|
|
|
|
googleplus { Faker::Internet.url('plus.google.com') }
|
|
|
|
|
twitter { Faker::Internet.url('twitter.com') }
|
|
|
|
|
instagram { Faker::Internet.url('instagram.com') }
|
|
|
|
|
|
|
|
|
|
conference
|
|
|
|
|
end
|
|
|
|
|
end
|