diff options
author | Lucas Caton <lucascaton@gmail.com> | 2013-01-19 15:49:28 -0200 |
---|---|---|
committer | Lucas Caton <lucascaton@gmail.com> | 2013-01-19 15:49:28 -0200 |
commit | 2b7a621e6a3bcbe40432d7adb75d5acdd798d1c6 (patch) | |
tree | 438ce29e5be585319a4142f38d69ed8a61f56aca /guides | |
parent | 46752092ef222d8ae5c1e314f18aefab8a167c05 (diff) | |
download | rails-2b7a621e6a3bcbe40432d7adb75d5acdd798d1c6.tar.gz rails-2b7a621e6a3bcbe40432d7adb75d5acdd798d1c6.tar.bz2 rails-2b7a621e6a3bcbe40432d7adb75d5acdd798d1c6.zip |
Replacing plugin to gem
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/migrations.md | 4 |
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`). |