我使用Rails 4.1 mongoid 4.0 目前,我有一個關係1-N class Tenant
include Mongoid::Document
belongs_to :tenant, index: true
end
class Experience
include Mongoid::Document
has_many :experiences
class Agent(models.Model):
full_name = models.CharField(max_length=200)
short_code = models.CharField(max_length=200)
class Phone(models.Model):
date = models.DateTimeField('Call Time