diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-01-27 14:57:43 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-01-27 15:34:53 -0200 |
commit | 080bd83df9ee96845370a73d6152bbe5f231f618 (patch) | |
tree | 352a60e2ca620e6def938ca09890acd4ccf50996 /activerecord/CHANGELOG.md | |
parent | 578c94ad025cc25b04473fbce687a4991c6348ed (diff) | |
download | rails-080bd83df9ee96845370a73d6152bbe5f231f618.tar.gz rails-080bd83df9ee96845370a73d6152bbe5f231f618.tar.bz2 rails-080bd83df9ee96845370a73d6152bbe5f231f618.zip |
Add `create_join_table` migration helper to create HABTM join tables
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 85ff3aaf2b..b45aba6bb1 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,7 +1,18 @@ ## Rails 4.0.0 (unreleased) ## -* The primary key is always initialized in the @attributes hash to nil (unless - another value has been specified). +* Added `create_join_table` migration helper to create HABTM join tables + + create_join_table :products, :categories + # => + # create_table :categories_products, :id => false do |td| + # td.integer :product_id, :null => false + # td.integer :category_id, :null => false + # end + + *Rafael Mendonça França* + +* The primary key is always initialized in the @attributes hash to nil (unless + another value has been specified). * In previous releases, the following would generate a single query with an `OUTER JOIN comments`, rather than two separate queries: |