From 73fe108d700cc2fa85bc7775c5a2ca9ca529849a Mon Sep 17 00:00:00 2001 From: Robin Dupret Date: Sun, 28 Dec 2014 22:37:34 +0100 Subject: Minor documentation edits [ci skip] --- .../connection_adapters/abstract/schema_definitions.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'activerecord') 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 - # :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 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") -- cgit v1.2.3