osem-fcy/spec/factories/tickets.rb

29 lines
814 B
Ruby
Raw Normal View History

# 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
#
FactoryBot.define do
factory :ticket do
2016-04-30 17:56:23 +02:00
title { "#{Faker::Hipster.word} Ticket" }
price_cents { 1000 }
price_currency { 'USD' }
visible { true }
factory :registration_ticket do
registration_ticket { true }
end
end
end