tab/app/models/transaction.rb
2015-09-08 11:44:40 +02:00

18 lines
487 B
Ruby

# == 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
#
class Transaction < ActiveRecord::Base
belongs_to :debtor
belongs_to :creditor
end