SHOW:
|
|
- or go back to the newest paste.
1 | class Cte < ActiveRecord::Base | |
2 | ||
3 | - | has_many :cliente , class_name: "Cliente", foreign_key: "destinatario_id" |
3 | + | belongs_to :cliente , class_name: "Cliente", foreign_key: "destinatario_id" |
4 | - | has_many :cliente , class_name: "Cliente", foreign_key: "remetente_id" |
4 | + | belongs_to :cliente , class_name: "Cliente", foreign_key: "remetente_id" |
5 | ||
6 | end |