File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
activerecord/lib/active_record/connection_adapters/abstract Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,9 @@ def primary_key(table_name)
187
187
# Join tables for {ActiveRecord::Base.has_and_belongs_to_many}[rdoc-ref:Associations::ClassMethods#has_and_belongs_to_many] should set it to false.
188
188
#
189
189
# A Symbol can be used to specify the type of the generated primary key column.
190
+ #
191
+ # A Hash can be used to specify the generated primary key column creation options.
192
+ # See {add_column}[rdoc-ref:ConnectionAdapters::SchemaStatements#add_column] for available options.
190
193
# [<tt>:primary_key</tt>]
191
194
# The name of the primary key, if one is to be added automatically.
192
195
# Defaults to +id+. If <tt>:id</tt> is false, then this option is ignored.
You can’t perform that action at this time.
0 commit comments