Class: PGTrunk::Operations::Triggers::Base Abstract
- Inherits:
-
PGTrunk::Operation
- Object
- PGTrunk::Operation
- PGTrunk::Operations::Triggers::Base
- Defined in:
- lib/pg_trunk/operations/triggers/base.rb
Overview
This class is abstract.
Base class for operations with triggers
Direct Known Subclasses
Instance Method Summary collapse
-
#<=>(other) ⇒ Object
triggers are ordered by table and name.
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
triggers are ordered by table and name
66 67 68 69 70 71 |
# File 'lib/pg_trunk/operations/triggers/base.rb', line 66 def <=>(other) return unless other.is_a?(self.class) result = table <=> other.table result.zero? ? super : result end |