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 change
      @change ||= {
        comment: comment,
        constraints: constraints.map(&:to_h).presence,
        default_sql: default_sql,
        null: null,
      }.compact
    end
def change @change ||= { comment : comment , constraints : constraints . map ( & :to_h ) . presence , default_sql : default_sql , null : null , } . compact end
Methods to populate `constraints` from the block
Methods to populate ` constraints ` from the block