Method: Sequel::Plugins::PgArrayAssociations::ClassMethods#pg_array_to_many

Defined in:
lib/sequel/plugins/pg_array_associations.rb

#pg_array_to_many(name, opts = OPTS, &block) ⇒ Object

Create a pg_array_to_many association, for the case where the current table contains the array with foreign keys pointing to the associated table. See associate for options.

[View source]

316
317
318
# File 'lib/sequel/plugins/pg_array_associations.rb', line 316

def pg_array_to_many(name, opts=OPTS, &block)
  associate(:pg_array_to_many, name, opts, &block)
end