blob: ef98d2b37aa54c3cb1fc8659dadb642d3d69edb6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# frozen_string_literal: true
module ActiveRecord
module ConnectionAdapters
module PostgreSQL
class Column < ConnectionAdapters::Column # :nodoc:
delegate :array, :oid, :fmod, to: :sql_type_metadata
alias :array? :array
def initialize(*, serial: nil, **)
super
@serial = serial
end
def serial?
@serial
end
end
end
PostgreSQLColumn = PostgreSQL::Column # :nodoc:
end
end
|