blob: 0eb4fb468cb3850f2226f7b8ea757fef7a36cb7e (
plain) (
tree)
|
|
module ActiveRecord
module ConnectionAdapters
# PostgreSQL-specific extensions to column definitions in a table.
class PostgreSQLColumn < Column #:nodoc:
delegate :array, :oid, :fmod, to: :sql_type_metadata
alias :array? :array
def serial?
default_function && default_function =~ /\Anextval\(.*\)\z/
end
end
end
end
|