提交 0f194a0b 编写于 作者: M Mauro George

Add RDoc about add_reference to ActiveRecord::Migration

[ci skip]
上级 dfc92695
......@@ -142,6 +142,12 @@ def initialize
# specified by +column_name+.
# * <tt>remove_index(table_name, name: index_name)</tt>: Removes the index
# specified by +index_name+.
# * <tt>add_reference(:table_name, :reference_name)</tt>: Adds a new column
# +reference_name_id+ by default a integer. Other options include
# <tt>:type</tt> (e.g. <tt>type: :string</tt>), <tt>:polymorphic</tt>
# (e.g. <tt>polymorphic: true</tt>) and <tt>:index</tt>
# (e.g. <tt>polymorphic: true, index: true</tt>).
# Also aliased as: <tt>add_belongs_to</tt>.
#
# == Irreversible transformations
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册