database_cleaner/examples/lib/neo4j_models.rb
Kostas Karachalios e331222c55 Merge pull request #308 from dpisarewski/neo4j
Description of configuration options for Neo4j and some improvements
2014-12-19 10:59:03 +01:00

17 lines
298 B
Ruby

require 'neo4j-core'
class Neo4jWidget < Neo4j::Node
def self.create!(*args)
create(*args)
end
def self.count
Neo4j::Session.query.match('n').pluck('COUNT(n)').first
end
end
class Neo4jWidgetUsingDatabaseOne < Neo4jWidget
end
class Neo4jWidgetUsingDatabaseTwo < Neo4jWidget
end