aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/migrations.md
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2013-01-26 17:41:56 +0100
committerXavier Noria <fxn@hashref.com>2013-01-26 17:41:56 +0100
commit0b5d3f32732f637fe29848a3597852dce9662c6b (patch)
treea0e75011bd90c1d7cde73a89b680c52ab0a589ec /guides/source/migrations.md
parent474e7dd82af030fb22ab5a586976d21b3497882a (diff)
parent4313461587254fd8e5b5a8ea7dfc9f0230c70ecb (diff)
downloadrails-0b5d3f32732f637fe29848a3597852dce9662c6b.tar.gz
rails-0b5d3f32732f637fe29848a3597852dce9662c6b.tar.bz2
rails-0b5d3f32732f637fe29848a3597852dce9662c6b.zip
Merge remote-tracking branch 'docrails/master'
Conflicts: actionpack/lib/action_view/helpers/form_options_helper.rb guides/code/getting_started/app/controllers/comments_controller.rb
Diffstat (limited to 'guides/source/migrations.md')
-rw-r--r--guides/source/migrations.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/migrations.md b/guides/source/migrations.md
index 617e01bd15..cefbc3b829 100644
--- a/guides/source/migrations.md
+++ b/guides/source/migrations.md
@@ -474,7 +474,7 @@ class ExampleMigration < ActiveRecord::Migration
t.references :category
end
- #add a foreign key
+ # add a foreign key
execute <<-SQL
ALTER TABLE products
ADD CONSTRAINT fk_products_categories
@@ -1011,7 +1011,7 @@ 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 plugin like
+could also use some gem like
[foreigner](https://github.com/matthuhiggins/foreigner) which add foreign key
support to Active Record (including support for dumping foreign keys in
`db/schema.rb`).