lib/pg_trunk/operations/domains/change_domain.rb
# Methods to populate `constraints` from the block
Methods to populate `constraints` from the block
Methods to populate ` constraints ` from the block
def inversion
      @inversion ||= {
        comment: from_comment,
        constraints: constraints&.map(&:invert),
        default_sql: from_default_sql,
        null: !null,
      }.slice(*change.keys)
    end
def inversion @inversion ||= { comment : from_comment , constraints : constraints &. map ( & :invert ) , default_sql : from_default_sql , null : ! null , } . slice ( * change . keys ) end
Methods to populate `constraints` from the block
Methods to populate ` constraints ` from the block