Class: ActiveRecord::ConnectionAdapters::Materialize::Column

Inherits:
Column
  • Object
show all
Defined in:
lib/active_record/connection_adapters/materialize/column.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#arrayObject Also known as: array?



9
10
11
# File 'lib/active_record/connection_adapters/materialize/column.rb', line 9

def array
  .sql_type.end_with?("[]")
end

#sql_typeObject



14
15
16
# File 'lib/active_record/connection_adapters/materialize/column.rb', line 14

def sql_type
  super.sub(/\[\]\z/, "")
end