scottohara/loot

View on GitHub
app/models/transaction_category.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# Copyright (c) 2016 Scott O'Hara, oharagroup.net
# frozen_string_literal: true

# Transaction category
class TransactionCategory < ApplicationRecord
    belongs_to :trx, foreign_key: 'transaction_id', class_name: 'Transaction'
    belongs_to :category
    self.primary_key = 'transaction_id'
end