class ActiveGraph::Schema::UniqueConstraintOperation
Public Class Methods
incompatible_operation_classes()
click to toggle source
# File lib/active_graph/schema/operation.rb 80 def self.incompatible_operation_classes 81 [ExactIndexOperation] 82 end
Public Instance Methods
create!()
click to toggle source
Calls superclass method
ActiveGraph::Schema::Operation#create!
# File lib/active_graph/schema/operation.rb 88 def create! 89 return if exist? 90 super 91 end
default_options()
click to toggle source
# File lib/active_graph/schema/operation.rb 97 def default_options 98 {type: :unique} 99 end
exist?()
click to toggle source
# File lib/active_graph/schema/operation.rb 93 def exist? 94 label.uniqueness_constraint?(property) 95 end
type()
click to toggle source
# File lib/active_graph/schema/operation.rb 84 def type 85 'uniqueness_constraint' 86 end