osem-fcy/spec/factories/payments.rb
2021-02-20 09:57:27 -08:00

23 lines
602 B
Ruby

# frozen_string_literal: true
# == Schema Information
#
# Table name: payments
#
# id :bigint not null, primary key
# amount :integer
# authorization_code :string
# last4 :string
# status :integer default("unpaid"), not null
# created_at :datetime not null
# updated_at :datetime not null
# conference_id :integer not null
# user_id :integer not null
#
FactoryBot.define do
factory :payment do
user
conference
status { 'unpaid' }
end
end