Homies and money moves

This commit is contained in:
Senad Uka
2019-06-20 22:47:39 +02:00
parent 48300b722c
commit 877f0425d0
17 changed files with 150 additions and 4 deletions

4
app/models/homie.rb Normal file
View File

@@ -0,0 +1,4 @@
class Homie < ApplicationRecord
has_many :money_moves_from, class_name: 'MoneyMove', column: :from_homie_id
has_many :money_moves_to, class_name: 'MoneyMove', column: :to_homie_id
end