osem-fcy/spec/factories/payments.rb

24 lines
602 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2021-02-20 09:57:27 -08:00
# == 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
2016-07-27 19:44:55 +05:30
factory :payment do
user
conference
status { 'unpaid' }
2016-07-27 19:44:55 +05:30
end
end