Re: howto create activerecords, when neo4j is overriding

25 views
Skip to first unread message
Message has been deleted
Message has been deleted

Chris Grigg

unread,
Oct 23, 2014, 12:35:18 PM10/23/14
to neo...@googlegroups.com
Personally, I’d leave the generators setup for ActiveRecord since their models are a bit more annoying to create. Creating a Neo4j mode manually is as simple as creating model_name.rb in /app/models and then this:

class ModelName
  include Neo4j::ActiveNode
end

Then you add your properties to it. ActiveRecord model generation creates database migrations, which I always mess up writing by hand.

On October 23, 2014 at 9:29:54 AM, fap2...@gmail.com (fap2...@gmail.com) wrote:

hmm, I can always change:

 config.generators do |g|
      g
.orm             :neo4j
   
end



to this:


 config.generators do |g|
     g
.orm              :active_record
   
end

It's just so manually.
--
You received this message because you are subscribed to the Google Groups "neo4jrb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4jrb+u...@googlegroups.com.
To post to this group, send email to neo...@googlegroups.com.
Visit this group at http://groups.google.com/group/neo4jrb.
For more options, visit https://groups.google.com/d/optout.

Mark Tedde

unread,
Oct 23, 2014, 12:45:26 PM10/23/14
to neo...@googlegroups.com
Ok thanks.

Date: Thu, 23 Oct 2014 09:35:10 -0700
From: ch...@subvertallmedia.com
To: neo...@googlegroups.com
Subject: Re: howto create activerecords, when neo4j is overriding

fap2...@gmail.com

unread,
Oct 23, 2014, 1:05:15 PM10/23/14
to neo...@googlegroups.com
thx
Reply all
Reply to author
Forward
0 new messages