tab/spec/factories/transactions.rb

25 lines
533 B
Ruby
Raw Normal View History

2015-09-08 09:44:40 +00:00
# == Schema Information
#
# Table name: transactions
#
# id :integer not null, primary key
# debtor_id :integer not null
# creditor_id :integer not null
# amount :integer default(0), not null
# origin :string not null
# message :string
# created_at :datetime not null
# updated_at :datetime not null
#
2015-09-08 09:30:11 +00:00
FactoryGirl.define do
factory :transaction do
debtor nil
creditor nil
amount 1
origin "MyString"
message "MyString"
end
end