class Movie | |
include Neo4j::ActiveNode | |
id_property :title | |
property :released | |
property :tagline | |
end | |
--
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.
# rake neo4j:migrate[add_id_property,setup]
rake aborted!
LoadError: cannot load such file -- neo4j/tasks/migration.rake
load 'neo4j/tasks/migration.rake'
John
2.1.3 :016 > Student.destroy_all
2.1.3 :017 > s = Student.create
2.1.3 :018 > s.neo_id
=> 2
2.1.3 :019 > Neo4j::Session.query("MATCH (n:Student) SET n._classname = null").first
2.1.3 :020 > Neo4j::Session.query("MATCH (n:Student) SET n.uuid = null").first
2.1.3 :021 > s = Student.first
2.1.3 :022 > s.neo_id
=> 2
# rake neo4j:migrate[add_id_property,setup]
rake aborted!
LoadError: cannot load such file -- neo4j/tasks/neo4j_server.rake
I'm going to move the files locally and test it later.
John
bundle exec rake -T
Another question, are you using Rails or some other rack framework? The migrations will only work with Rails. Andreas, I remember you were trying to get it going with Sinatra. Did you have any luck with that?Also, John, what does your Rakefile look like? You should not have anything special in there related to this, it's all included automatically.If it comes down to it, the migrations can be run through the Rails console. I can write up instructions on it later if you want, but if you peek in the rake file and the specs, you'll see how it works. Like I said, it was thrown together a bit hastily, so it's far from the most sophisticated code in the gem.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4jrb+unsubscribe@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.
--
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+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4jrb+unsubscribe@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.
--
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+unsubscribe@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.
# ruby -v
ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13]
load 'neo4j/tasks/neo4j_server.rake'
load 'neo4j/tasks/migration.rake'
rake neo4j:config[environment,port] # Configure Server, e.g
rake neo4j:info[environment] # Get info the Neo4j Server
rake neo4j:install[edition,environment] # Install Neo4j, example neo4j:install[community-2.1.3,development]
rake neo4j:migrate[task_name,subtask] # Run a script against the database to perform system-wide changes
rake neo4j:reset_yes_i_am_sure[environment] # Reset the Neo4j Server
rake neo4j:restart[environment] # Restart the Neo4j Server
rake neo4j:start[environment] # Start the Neo4j Server
rake neo4j:stop[environment] # Stop the Neo4j Server
$ rake neo4j:migrate[add_id_property,setup]
rake aborted!
LoadError: cannot load such file -- neo4j/tasks/neo4j_server.rake
/Code/node/sinatra/Rakefile:1:in `load'
$ bundle exec rake neo4j:migrate[add_id_property,setup]
rake aborted!
Don't know how to build task 'environment'
Hi
I'm still getting an error.
Gemfile
source 'https://rubygems.org'
gem 'sinatra'
#gem 'neo4j', '~>3.0.1' #git: 'g...@github.com:neo4jrb/neo4j.git'
gem 'neo4j', git: 'g...@github.com:neo4jrb/neo4j.git', branch: 'app-agnostic-migration'
group 'development' do
gem 'pry'
gem 'shotgun'
end
....
Using railties 4.1.6
Using neo4j 3.0.1 from git@github.com:neo4jrb/neo4j.git (at app-agnostic-migration)
Using slop 3.6.0
Using pry 0.10.1
Using rack-protection 1.5.3
Using shotgun 0.9
Using tilt 1.4.1
Using sinatra 1.4.5
Using bundler 1.7.3
$ rake neo4j:migrate[add_id_property,setup]
rake aborted!
Don't know how to build task 'environment
'
/Users/john/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:in `eval'
/Users/john/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => neo4j:migrate
...
Johns-MacBook:sinatra john$ ruby -v
ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-darwin13.0]
Johns-MacBook:sinatra john$ bundle exec rake neo4j:migrate[add_id_property,setup]
rake aborted!
Don't know how to build task 'environment
'
/Users/john/.rvm/gems/ruby-2.1.3/bin/ruby_executable_hooks:15:in `eval'
/Users/john/.rvm/gems/ruby-2.1.3/bin/ruby_executable_hooks:15:in `<main>'
I'm running rvm on OSX . Something is strange. I'll give it a go on one of my linux boxes.
John
...For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';ret