lib/arjdbc/derby/adapter.rb
# Post process default value from JDBC into a Rails-friendly format (columns{-internal})
Post process default value from JDBC into a Rails-friendly format (columns{-internal})
Post process default value from JDBC into a Rails - friendly format ( columns { - internal } )
def default_value(value)
        return $1 if value =~ /^'(.*)'$/
        return nil if value == "GENERATED_BY_DEFAULT"
        value
      end
def default_value ( value ) return $1 if value =~ / ^'(.*)'$ / return nil if value == "GENERATED_BY_DEFAULT" value end
Post process default value from JDBC into a Rails-friendly format (columns{-internal})
Post process default value from JDBC into a Rails - friendly format ( columns { - internal } )
# jdbc returns column default strings with actual single quotes around the value.
value