Add FinancialLinks

For now this is only usefull for plugins, since there is no UI.
This commit is contained in:
Patrick Gansterer 2017-10-13 14:36:56 +02:00
parent 75deec9f06
commit 53bb096046
12 changed files with 95 additions and 7 deletions

View file

@ -3,6 +3,7 @@
class FinancialTransaction < ActiveRecord::Base
belongs_to :ordergroup
belongs_to :user
belongs_to :financial_link
validates_presence_of :amount, :note, :user_id, :ordergroup_id
validates_numericality_of :amount, greater_then: -100_000,