README.md in ruby-xcdm-0.0.8 vs README.md in ruby-xcdm-0.0.9

- old
+ new

@@ -1,11 +1,11 @@ # ruby-xcdm -This is a tool for generating the same xcdatamodeld files that XCode +This is a tool for generating the same xcdatamodeld files that Xcode does when designing a datamodel for Core Data. It is written in pure ruby, but it will be of particular interest to RubyMotion developers. -It offers the essential features that XCode does, plus a text-based +It offers the essential features that Xcode does, plus a text-based workflow and some niceties, like automatic inverse relationships. [![Dependency Status](https://gemnasium.com/infinitered/ruby-xcdm.png)](https://gemnasium.com/infinitered/ruby-xcdm) [![Build Status](https://travis-ci.org/infinitered/ruby-xcdm.png?branch=master)](https://travis-ci.org/infinitered/ruby-xcdm) [![Gem Version](https://badge.fury.io/rb/ruby-xcdm.png)](http://badge.fury.io/rb/ruby-xcdm) @@ -147,9 +147,21 @@ entity "Posting" do belongs_to :person belongs_to :thread datetime :joined_at + end +``` + +You can also have symmetric one-to-one relationships via has_one: + +```ruby + entity "Person" do + has_one :ego + end + + entity "Ego" do + has_one :person end ``` Core Data has no equivalent of ```:through``` in ActiveRecord, so you'll need to handle that relation yourself.