Class: PGTrunk::Operations::CheckConstraints::ValidateCheckConstraint
- Inherits:
-
Base
- Object
- PGTrunk::Operation
- Base
- PGTrunk::Operations::CheckConstraints::ValidateCheckConstraint
- Defined in:
- lib/pg_trunk/operations/check_constraints/validate_check_constraint.rb
Instance Method Summary collapse
-
#invert ⇒ Object
The operation is invertible but the inversion does nothing.
- #to_sql(_version) ⇒ Object
Methods inherited from Base
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
#invert ⇒ Object
The operation is invertible but the inversion does nothing
44 |
# File 'lib/pg_trunk/operations/check_constraints/validate_check_constraint.rb', line 44 def invert; end |
#to_sql(_version) ⇒ Object
37 38 39 40 41 |
# File 'lib/pg_trunk/operations/check_constraints/validate_check_constraint.rb', line 37 def to_sql(_version) <<~SQL.squish ALTER TABLE #{table.to_sql} VALIDATE CONSTRAINT #{name.name.inspect}; SQL end |