2018-05-07 16:47:29 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2021-02-20 09:57:27 -08:00
|
|
|
# == Schema Information
|
|
|
|
|
#
|
|
|
|
|
# Table name: tickets
|
|
|
|
|
#
|
|
|
|
|
# id :bigint not null, primary key
|
|
|
|
|
# description :text
|
|
|
|
|
# price_cents :integer default(0), not null
|
|
|
|
|
# price_currency :string default("USD"), not null
|
|
|
|
|
# registration_ticket :boolean default(FALSE)
|
|
|
|
|
# title :string not null
|
|
|
|
|
# visible :boolean default(TRUE)
|
|
|
|
|
# created_at :datetime
|
|
|
|
|
# updated_at :datetime
|
|
|
|
|
# conference_id :integer
|
|
|
|
|
#
|
2018-09-03 20:44:39 +02:00
|
|
|
FactoryBot.define do
|
2014-08-28 15:21:05 +02:00
|
|
|
factory :ticket do
|
2016-04-30 17:56:23 +02:00
|
|
|
title { "#{Faker::Hipster.word} Ticket" }
|
2018-09-08 03:58:50 +02:00
|
|
|
price_cents { 1000 }
|
|
|
|
|
price_currency { 'USD' }
|
2018-04-09 11:53:31 -07:00
|
|
|
visible { true }
|
2017-08-12 01:27:16 +05:30
|
|
|
factory :registration_ticket do
|
2018-09-08 03:58:50 +02:00
|
|
|
registration_ticket { true }
|
2017-08-12 01:27:16 +05:30
|
|
|
end
|
2014-08-28 15:21:05 +02:00
|
|
|
end
|
|
|
|
|
end
|