2017-01-09 16:41:24 +01:00
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: requests
|
|
|
|
#
|
|
|
|
# id :integer not null, primary key
|
|
|
|
# debtor_id :integer not null
|
|
|
|
# creditor_id :integer not null
|
|
|
|
# issuer_id :integer not null
|
|
|
|
# issuer_type :string not null
|
|
|
|
# amount :integer default(0), not null
|
|
|
|
# message :string
|
|
|
|
# status :integer default(0)
|
|
|
|
# created_at :datetime not null
|
|
|
|
# updated_at :datetime not null
|
|
|
|
#
|
|
|
|
|
2019-05-30 11:08:46 +02:00
|
|
|
FactoryBot.define do
|
2017-01-09 15:46:43 +01:00
|
|
|
factory :request do
|
2019-05-31 04:01:43 +02:00
|
|
|
status { :open }
|
|
|
|
association :issuer, factory: :user, name: 'Issuer'
|
|
|
|
association :debtor, factory: :user, name: 'Debtor'
|
|
|
|
association :creditor, factory: :user, name: 'Creditor'
|
|
|
|
amount { 5 }
|
2017-01-09 15:46:43 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|