Class: PGTrunk::Operations::CheckConstraints::Base Abstract
- Inherits:
-
PGTrunk::Operation
- Object
- PGTrunk::Operation
- PGTrunk::Operations::CheckConstraints::Base
- Defined in:
- lib/pg_trunk/operations/check_constraints/base.rb
Overview
This class is abstract.
Base class for operations with check constraints
Direct Known Subclasses
AddCheckConstraint, DropCheckConstraint, RenameCheckConstraint, ValidateCheckConstraint
Instance Method Summary collapse
-
#<=>(other) ⇒ Object
By default foreign keys are sorted by tables and names.
Methods included from PGTrunk::Operation::SQLHelpers
Methods included from PGTrunk::Operation::RubyHelpers
#dump, #to_a, #to_opts, #to_ruby
Methods included from PGTrunk::Operation::Inversion
Methods included from PGTrunk::Operation::Validations
Methods included from PGTrunk::Operation::Attributes
Instance Method Details
#<=>(other) ⇒ Object
By default foreign keys are sorted by tables and names.
23 24 25 26 27 28 |
# File 'lib/pg_trunk/operations/check_constraints/base.rb', line 23 def <=>(other) return unless other.is_a?(self.class) result = table <=> other.table result.zero? ? super : result end |