Merge branch 'master' of github.com:domify/registry

This commit is contained in:
Martin Lensment 2015-07-03 18:33:48 +03:00
commit b0da030889
13 changed files with 158 additions and 68 deletions

View file

@ -3,7 +3,7 @@ class BankTransaction < ActiveRecord::Base
belongs_to :bank_statement
has_one :account_activity
scope :unbinded, -> {
scope :unbinded, lambda {
where('id NOT IN (SELECT bank_transaction_id FROM account_activities where bank_transaction_id IS NOT NULL)')
}