Method: Sequel::Plugins::PgArrayAssociations::PgArrayToManyAssociationReflection#array_type
- Defined in:
- lib/sequel/plugins/pg_array_associations.rb
permalink #array_type ⇒ Object
[View source]
189 190 191 192 193 194 195 196 197 |
# File 'lib/sequel/plugins/pg_array_associations.rb', line 189 def array_type cached_fetch(:array_type) do if (sch = self[:model].db_schema) && (s = sch[self[:key]]) && (t = s[:db_type]) t.sub(/\[\]\z/, '').freeze else :integer end end end |