2018-05-07 16:47:29 -07:00
|
|
|
# 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
|
|
|
|
|
#
|
2018-09-03 20:44:39 +02:00
|
|
|
FactoryBot.define do
|
2016-07-27 19:44:55 +05:30
|
|
|
factory :payment do
|
|
|
|
|
user
|
|
|
|
|
conference
|
2018-09-08 03:58:50 +02:00
|
|
|
status { 'unpaid' }
|
2016-07-27 19:44:55 +05:30
|
|
|
end
|
|
|
|
|
end
|