tab/spec/factories/transactions.rb
Ilion Beyst a3a7ff8c44 Revert "Merge branch 'master' into filter-datatables"
This reverts commit 78863c40b7, reversing
changes made to bbaa070cca.
2015-09-10 22:25:52 +02:00

25 lines
667 B
Ruby

# == Schema Information
#
# Table name: transactions
#
# 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
# created_at :datetime not null
# updated_at :datetime not null
#
FactoryGirl.define do
factory :transaction do
association :debtor, factory: :user
association :creditor, factory: :user
issuer { debtor }
amount { rand(100) }
message { Faker::Lorem.sentence }
end
end