Module | Sequel::Plugins::PgArrayAssociations::ClassMethods |
In: |
lib/sequel/plugins/pg_array_associations.rb
|
Create a many_to_pg_array association, for the case where the associated table contains the array with foreign keys pointing to the current table. See associate for options.
# File lib/sequel/plugins/pg_array_associations.rb, line 182 182: def many_to_pg_array(name, opts=OPTS, &block) 183: associate(:many_to_pg_array, name, opts, &block) 184: end
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.
# File lib/sequel/plugins/pg_array_associations.rb, line 189 189: def pg_array_to_many(name, opts=OPTS, &block) 190: associate(:pg_array_to_many, name, opts, &block) 191: end