class Neo4j::Schema::UniqueConstraintOperation

Public Class Methods

incompatible_operation_classes() click to toggle source
   # File lib/neo4j/schema/operation.rb
69 def self.incompatible_operation_classes
70   [ExactIndexOperation]
71 end

Public Instance Methods

create!() click to toggle source
Calls superclass method Neo4j::Schema::Operation#create!
   # File lib/neo4j/schema/operation.rb
77 def create!
78   return if exist?
79   super
80 end
default_options() click to toggle source
   # File lib/neo4j/schema/operation.rb
86 def default_options
87   {type: :unique}
88 end
exist?() click to toggle source
   # File lib/neo4j/schema/operation.rb
82 def exist?
83   Neo4j::Label.constraint?(label_name, property)
84 end
type() click to toggle source
   # File lib/neo4j/schema/operation.rb
73 def type
74   'constraint'
75 end