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