title: Getting Started with Neo4j and Ruby - Error: Neo4j::DeprecatedSchemaDefinitionError in Books#index - id_property is the root of the issue
body: <p>Getting Started with Neo4j and Ruby</p>
  
  <p><a href="https://neo4j.com/developer/ruby-course/" rel="nofollow noreferrer">https://neo4j.com/developer/ruby-course/</a></p>
  
  <p>I followed this instruction.</p>
  
  <pre><code>rails new asset_portal -m http://neo4jrb.io/neo4j/neo4j.rb -O
  cd asset_portal
  rake neo4j:install[community-latest]
  rake neo4j:start
  </code></pre>
  
  <p>I got the projects setup and neo4j server started.</p>
  
  <p>And then I followed the instruction to create scaffold for user, asset, category and book.</p>
  
  <p>And then I changed the book model to <a href="https://i.stack.imgur.com/cCJpz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cCJpz.png" alt="enter image description here"></a></p>
  
  <p>as instructed.</p>
  
  <p><a href="https://i.stack.imgur.com/v98xg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/v98xg.png" alt="enter image description here"></a></p>
  
  <p>And I changed this too as instructed.</p>
  
  <p>Now I run the migration, and start the server.</p>
  
  <pre><code>rake neo4j:migrate
  rails s
  open http://localhost:3000/books
  </code></pre>
  
  <p>I got the migration error</p>
  
  <pre><code>Neo4j::DeprecatedSchemaDefinitionError in Books#index
  Some schema elements were defined by the model (which is no longer supported), but they do not exist in the database.  Run the following to create them if you haven't already:
  
  rake neo4j:generate_schema_migration[constraint,Book,isbn]
  
  
  And then run `rake neo4j:migrate`
  </code></pre>
  
  <p>I followed the instruction, and run </p>
  
  <pre><code>rake neo4j:generate_schema_migration[constraint,Book,isbn]
  rake neo4j:migrate
  </code></pre>
  
  <p>I still get the same error.</p>
  
  <p>I found a neo4j git link which is talking about the same error, <a href="https://github.com/neo4jrb/neo4j/issues/1356" rel="nofollow noreferrer">https://github.com/neo4jrb/neo4j/issues/1356</a>. It says "id_property" is the root of the issue. But I could not get clear answer what should I do from this thread.</p>
  
  <p>And I am following the instruction from Neo4j manual to change the book model to </p>
  
  <pre><code>id_property :isbn
  </code></pre>
  
  <p>Someone else must already run into this bug and solved this issue. (Maybe Neo4j manual is out of date now). Please help.</p>
  
  <p>I am running this on Mac. And I just updated rake, ruby on my Mac, before I started this project.</p>
  
  <pre><code>$ rails --version
  Rails 5.2.2
  
  $ ruby --version
  ruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-darwin17]
  </code></pre>