app/models/trade_restriction_term.rb
# == Schema Information
#
# Table name: trade_restriction_terms
#
# id :integer not null, primary key
# trade_restriction_id :integer
# term_id :integer
# created_at :datetime not null
# updated_at :datetime not null
# created_by_id :integer
# updated_by_id :integer
#
class TradeRestrictionTerm < ApplicationRecord
include TrackWhoDoesIt
# Relationship model between TradeCode(term) and TradeRestriction
# attr_accessible :term_id, :trade_restriction_id
belongs_to :trade_restriction
belongs_to :term, :class_name => 'TradeCode'
end