class OrientdbSchemaMigrator::Proxy

Attributes

context[R]
target[R]

Public Class Methods

new(target, context) click to toggle source
# File lib/orientdb_schema_migrator/proxy.rb, line 5
def initialize(target, context)
  @target = target
  @context = context
end

Public Instance Methods

add_index(property, index_name, index_type) click to toggle source
# File lib/orientdb_schema_migrator/proxy.rb, line 22
def add_index(property, index_name, index_type)
  target.public_send(:add_property, context, property, index_name, index_type)
end
add_property(property, type, options = {}) click to toggle source
# File lib/orientdb_schema_migrator/proxy.rb, line 10
def add_property(property, type, options = {})
  target.public_send(:add_property, context, property, type, options)
end
alter_property(property, attribute_name, new_value) click to toggle source
# File lib/orientdb_schema_migrator/proxy.rb, line 14
def alter_property(property, attribute_name, new_value)
  target.public_send(:add_property, context, property, attribute_name, new_value)
end
drop_property(property) click to toggle source
# File lib/orientdb_schema_migrator/proxy.rb, line 18
def drop_property(property)
  target.public_send(:add_property, context, property)
end