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
21:         def auto_migrate_constraints_down(repository_name = self.repository_name)
22:           return unless storage_exists?(repository_name)
23:           # TODO: this check should not be here
24:           return if self.respond_to?(:is_remixable?) && self.is_remixable?
25: 
26:           relationships(repository_name).each do |relationship|
27:             relationship.auto_migrate_constraints_down(repository_name)
28:           end
29:         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
11:         def auto_migrate_constraints_up(repository_name = self.repository_name)
12:           # TODO: this check should not be here
13:           return if self.respond_to?(:is_remixable?) && self.is_remixable?
14: 
15:           relationships(repository_name).each do |relationship|
16:             relationship.auto_migrate_constraints_up(repository_name)
17:           end
18:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.