From d6bf62c3c6be07dd4208214f86b8b122b4f3d16a Mon Sep 17 00:00:00 2001 From: Adam Konner Date: Mon, 13 May 2013 13:14:46 -0400 Subject: fix grammar --- guides/source/migrations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'guides/source/migrations.md') diff --git a/guides/source/migrations.md b/guides/source/migrations.md index fcfc54a3d7..ceb1859c2f 100644 --- a/guides/source/migrations.md +++ b/guides/source/migrations.md @@ -1065,8 +1065,8 @@ with foreign key constraints in the database. Although Active Record does not provide any tools for working directly with such features, the `execute` method can be used to execute arbitrary SQL. You -could also use some gem like -[foreigner](https://github.com/matthuhiggins/foreigner) which add foreign key +can also use a gem like +[foreigner](https://github.com/matthuhiggins/foreigner) which adds foreign key support to Active Record (including support for dumping foreign keys in `db/schema.rb`). -- cgit v1.2.3 From 4d88e85d98639b4ea6ec7e67b8c5a52422199b0f Mon Sep 17 00:00:00 2001 From: Mikhail Dieterle Date: Tue, 14 May 2013 21:04:32 +0300 Subject: Use new hash syntax --- guides/source/migrations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'guides/source/migrations.md') diff --git a/guides/source/migrations.md b/guides/source/migrations.md index ceb1859c2f..550f8fdc3c 100644 --- a/guides/source/migrations.md +++ b/guides/source/migrations.md @@ -852,7 +852,7 @@ end # app/models/product.rb class Product < ActiveRecord::Base - validates :flag, :inclusion => { :in => [true, false] } + validates :flag, inclusion: { in: [true, false] } end ``` @@ -877,7 +877,7 @@ end # app/models/product.rb class Product < ActiveRecord::Base - validates :flag, :inclusion => { :in => [true, false] } + validates :flag, inclusion: { in: [true, false] } validates :fuzz, presence: true end ``` -- cgit v1.2.3