Parent

Spec::Matchers::Migration::PrimaryKeyMatcher

Attributes

column[RW]

Public Instance Methods

failure_message() click to toggle source
    # File lib/spec/matchers/migration_matchers.rb, line 94
94:         def failure_message
95:           %(expected #{column.name} to be PRIMARY KEY)
96:         end
matches?(column) click to toggle source
    # File lib/spec/matchers/migration_matchers.rb, line 89
89:         def matches?(column)
90:           @column = column
91:           column.primary_key
92:         end
negative_failure_message() click to toggle source
     # File lib/spec/matchers/migration_matchers.rb, line 98
 98:         def negative_failure_message
 99:           %(expected #{column.name} to not be PRIMARY KEY)
100:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.