Module: ActiveRecord::AttributeMethods::PrimaryKey::ClassMethods

Defined in:
lib/composite_primary_keys/attribute_methods/primary_key.rb

Instance Method Summary collapse

Instance Method Details

#suppress_composite_primary_key(pk) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/composite_primary_keys/attribute_methods/primary_key.rb', line 5

def suppress_composite_primary_key(pk)
  pk
  # return pk unless pk.is_a?(Array)
  #
  # warn <<~WARNING
  #         WARNING: Active Record does not support composite primary key.
  #
  #         #{table_name} has composite primary key. Composite primary key is ignored.
  # WARNING
end