diff options
author | Robin Dupret <robin.dupret@gmail.com> | 2014-12-28 22:37:34 +0100 |
---|---|---|
committer | Robin Dupret <robin.dupret@gmail.com> | 2014-12-28 22:55:09 +0100 |
commit | 73fe108d700cc2fa85bc7775c5a2ca9ca529849a (patch) | |
tree | 3a4859e0803afd36eacc9852ae6bc7c4bbd1c22a /activerecord/lib | |
parent | edaab4dbe80ac9ae705be05f7d9e20f942e057ab (diff) | |
download | rails-73fe108d700cc2fa85bc7775c5a2ca9ca529849a.tar.gz rails-73fe108d700cc2fa85bc7775c5a2ca9ca529849a.tar.bz2 rails-73fe108d700cc2fa85bc7775c5a2ca9ca529849a.zip |
Minor documentation edits [ci skip]
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb index 26a536be87..1cf1600d81 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb @@ -380,12 +380,11 @@ module ActiveRecord column(:updated_at, :datetime, options) end - # Adds a reference. Optionally adds a +type+ column, if - # <tt>:polymorphic</tt> option is provided. <tt>references</tt> and - # <tt>belongs_to</tt> are acceptable. The reference column will be an - # +integer+ by default, the <tt>:type</tt> option can be used to specify - # a different type. A foreign key will be created if a +foreign_key+ - # option is passed. + # Adds a reference. Optionally adds a +type+ column, if the + # +:polymorphic+ option is provided. +references+ and +belongs_to+ + # are acceptable. The reference column will be an +integer+ by default, + # the +:type+ option can be used to specify a different type. A foreign + # key will be created if the +:foreign_key+ option is passed. # # t.references(:user) # t.references(:user, type: "string") |