aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/association_basics.md
Commit message (Collapse)AuthorAgeFilesLines
* Update association_basics.mdMarkov Alexey2015-04-191-1/+1
|
* Improve note about unique index and foreign key on has_one associationCarlos Antonio da Silva2015-04-131-6/+7
| | | | Related to f1af967e0055a33c45071848a049ff342e9c291e. [ci skip]
* Add note wrt foreign key constraint to ensure data integrityZachary Scott2015-04-121-0/+10
| | | | | | Thanks for patch @sgrif :trollface: Closes #18216
* Merge pull request #19564 from jonatack/counter_cache_docsZachary Scott2015-04-121-3/+11
|\ | | | | [skip ci] Fix counter_cache in the Rails Guides
| * [skip ci] Fix counter_cache in the Rails GuidesJon Atack2015-03-281-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the AR Associations Guide, this PR fixes: - The counter_cache declaration is now shown only in the `belongs_to` association. - The docs stated that the counter_cache declaration needs to be on the `has_many` side; now corrected to the `belongs_to` side. - Split the custom column explanation out to a separate paragraph. - Simplify the NOTE because it is true both with and without a custom column name.
* | Fix a few typos and wrap some lines [ci skip]Robin Dupret2015-04-121-3/+4
| |
* | [skip ci] primay_key -> primary_keyJon Atack2015-04-111-1/+1
| |
* | Copy edits for primary_key documentation in association guide. [ci skip]Zachary Scott2015-04-101-3/+4
| |
* | Merge branch 'belongs_to_primary_key_doc' of ↵Zachary Scott2015-04-101-0/+19
|\ \ | |/ |/| | | https://github.com/girishso/rails into girishso-belongs_to_primary_key_doc
| * added primary_key option documentation for belongs_to associationGirish S2014-09-231-0/+19
| | | | | | | | fixes issue #16698
* | [ci skip] use true as value rather than symbolAkshay Vishnoi2015-03-191-1/+1
| |
* | [ci skip] use false as value rather than symbolAkshay Vishnoi2015-03-191-1/+1
| |
* | Composite index is [:imageable_type, :imageable_id] [ci skip]Steve Lounsbury2015-03-011-1/+1
| |
* | Indexing a polymorphic assoc adds index on type and id [ci skip]Steve Lounsbury2015-03-011-1/+1
| |
* | Tiny documentation edits [ci skip]Robin Dupret2015-02-241-1/+2
| |
* | Require `belongs_to` by default.Josef Šimánek2015-02-211-0/+5
| | | | | | | | Deprecate `required` option in favor of `optional` for belongs_to.
* | Replace deprecated readonly option with scope blocks in docs and guideKonstantinos Rousis2015-02-181-3/+2
| |
* | Merge branch 'master' of github.com:rails/docrailsVijay Dev2015-02-141-6/+6
|\ \
| * | [ci skip] Add some more code highlights.Juanito Fatas2015-02-101-5/+5
| | |
| * | [ci skip] Add a missing space in t.belongs_to argument.Juanito Fatas2015-01-291-1/+1
| | |
* | | Add Single Table Inheritance to guides [ci skip]Andrey Nering2015-01-311-0/+64
|/ /
* | - Changed `IN` to `ON` in markdown renderer conditionVipul A M2015-01-141-1/+1
| | | | | | | | - Changed `IN` to `ON` in all note sentences in guides.
* | Minor documentation edits [ci skip]Robin Dupret2014-12-281-0/+1
| |
* | warn about reading guides in GitHubXavier Noria2014-12-231-0/+2
| | | | | | | | References #18148.
* | You need to specify the counter_cache option on the has_many side of the ↵Steve Lounsbury2014-12-161-1/+7
| | | | | | | | association when using a custom counter cache column. This is documented on the has_many association here: http://apidock.com/rails/ActiveRecord/Associations/ClassMethods/has_many [ci skip]
* | Add `null` option to timestamps as migration generator does [ci skip]Zachary Scott2014-12-141-19/+19
| |
* | [ci skip] Remove outdate note of :dependentAaron Huang2014-11-281-2/+0
| |
* | [ci skip] Fix some typos, normalize sentence.Juanito Fatas2014-09-081-7/+7
|/ | | | | | | | Follow up of #16722. https://github.com/rails/rails/pull/16722 also normalize all instance gained methods’ sentence.
* Merge pull request #16722 from yui-knk/fix/guides_association_basics2Rafael Mendonça França2014-08-271-4/+4
|\ | | | | [ci skip] Fix typo of `collection_singular_ids=` method.
| * [ci skip] Fix typo of `collection_singular_ids=` method.yui-knk2014-08-271-4/+4
| |
* | [ci skip] Fix typo of `collection=` method.yui-knk2014-08-271-4/+4
|/
* adding indexes on tables in migration scriptsMatt Warren2014-07-241-11/+20
| | | | | | | | missed one migration script in last commit remove some empty lines using the belongs_to index option to be more concise
* correct markdown usage [ci skip]Nishant Modak2014-07-091-6/+6
|
* Rename Posts to Articles in Guides, continuation of 2d446e77 / #13774 [ci skip]John Kelly Ferguson2014-05-211-20/+20
|
* [ci skip] Use plain underscore instead of "\_".Juanito Fatas2014-04-131-1/+1
|
* Updated association_basics.md [ci skip]Rohit Paul Kuruvilla2014-01-311-0/+13
| | | | | | | | | | | | | | Updated association_basics.md to include how to write migrations for self joins Update association_basics.md Corrected the update Update association_basics.md Typo fix Changed :employee to :manager
* updating options documentation for associationsKuldeep Aggarwal2013-11-291-1/+5
| | | | removed unnecessary test case and improved test case for belongs_to having invalid options
* [ci skip] Fix number of methods added by association.Juanito Fatas2013-10-171-8/+8
| | | | Also clean up some trailing spaces on line 1143-1146.
* added "id: false" to HABTM join table exampleOfer Nave2013-09-241-1/+1
| | | Based on the instructions further down in section 3.3.2.
* Fix the model name in the association basics guidesRafael Mendonça França2013-09-231-1/+4
| | | [ci skip]
* cleans the guides sources from fancy non-ASCII stuffXavier Noria2013-08-231-2/+2
|
* Added comment to a guide about necessity of `:dependent` option for ↵Ilya Vorontsov2013-08-121-0/+6
| | | | associations with NOT NULL constraint
* [Fixes #11734]Correct Association Basics Guide on has_and_belongs_to_many[ci ↵Gaurish Sharma2013-08-031-2/+3
| | | | | | | | | | skip] Done the following changes: 1. Replace uniq call in example with autosave as uniq is not supported on has_and_belongs_to_many 2. Add :readonly option to list of supported call as per [EdgeApi](http://edgeapi.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#method-i-has_and_belongs_to_many)
* Fix a grammatical error/typo in Active Record Associations guide.Daniel Dawson2013-07-111-1/+1
|
* Using preferred find_by syntax in guidesCristian Planas2013-07-011-1/+1
|
* fix quotes and ruby old hashesMikhail Dieterle2013-06-151-4/+4
|
* Use markdown quotes instead <tt> tagMikhail Dieterle2013-06-151-5/+5
|
* Added bang method versions to association basics guideMatthew Hensrud2013-06-071-1/+25
|
* End-of-line whitespace huntSunny Ripert2013-05-281-12/+12
|
* Added an example for primary_key optionNeeraj Singh2013-05-221-0/+14
|