DataMapper::Constraints::Migrations::Model

Public Instance Methods

auto_migrate_constraints_down(repository_name = self.repository_name) click to toggle source

@api private

# File lib/data_mapper/constraints/migrations/model.rb, line 21
def auto_migrate_constraints_down(repository_name = self.repository_name)
  return unless storage_exists?(repository_name)
  # TODO: this check should not be here
  return if self.respond_to?(:is_remixable?) && self.is_remixable?

  relationships(repository_name).each do |relationship|
    relationship.auto_migrate_constraints_down(repository_name)
  end
end
auto_migrate_constraints_up(repository_name = self.repository_name) click to toggle source

@api private

# File lib/data_mapper/constraints/migrations/model.rb, line 11
def auto_migrate_constraints_up(repository_name = self.repository_name)
  # TODO: this check should not be here
  return if self.respond_to?(:is_remixable?) && self.is_remixable?

  relationships(repository_name).each do |relationship|
    relationship.auto_migrate_constraints_up(repository_name)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.