-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
None
Relations now have one more option,
Unable to find source-code formatter for language: primary_key```. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
Given those models
ruby
class Person
include Mongoid::Document
field :username
has_many :cats, primary_key: :username
end
ruby
class Cat
include Mongoid::Document
field :name
belongs_to :person, primary_key: :username
end
ruby
crazy_lady = Person.create!
20.times
this will create 20 cats, and the fk, on Cat,
person_id{{`}}, will be the username.