Sha256: 590a9d721cf0e641b0dc519c762b22f61ccce9a15b0bdfc5f0583e404f2e91fa

Contents?: true

Size: 301 Bytes

Versions: 1

Compression:

Stored size: 301 Bytes

Contents

class Connection < ActiveRecord::Base
  
  self.table_name = "connections"
  self.primary_key = 'id'

  belongs_to :agent, foreign_key: "agent_id"
  belongs_to :customer, foreign_key: "customer_id"
  belongs_to :sharing, foreign_key: "sharing_id"
  
  def describe_id
  	"Connection ##{id}"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
civic311_test3-0.0.2 app/models/connection.rb