aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/association_basics.md
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Adding documentation to the automatic inverse_of finder.wangjohn2013-05-111-0/+11
|
* Changed the guides to use distinct instead of uniq for associations (seewangjohn2013-04-021-6/+30
| | | | | | commit a1bb6c8b which changes the naming). I've also provided an example of how distinctness when inserting into an association can be achieved.
* Typo: Migration class name would use pluralChao Ren2013-03-231-1/+1
|
* TypppoAkira Matsuda2013-03-061-2/+2
|
* Add explanation of :dependent => :restrictDavid Deller2013-03-011-1/+1
| | | Based on information here: http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#method-i-has_many
* Merge pull request #8432 from ↵Rafael Mendonça França2012-12-131-0/+130
|\ | | | | | | | | | | | | rmcastil/add_migration_example_to_each_association_type Add migration examples to Association Basics [ci skip]
| * Add migration example to Association Basics [ci skip]Ryan Castillo2012-12-131-0/+130
| |
* | Punctuation, capitalization, grammar fixes in rails guidesKatie Oldaker2012-12-071-1/+1
| |
* | Fixed grammar in a lot of guide prologues.Katie Oldaker2012-12-071-3/+3
|/
* Normalize on 'After reading this guide, you will know:'Steve Klabnik2012-11-291-1/+3
| | | | | We have three or four different introduction sentences to the guides. After this commit, we use the same one everywhere.
* Associations: s/A Guide//Steve Klabnik2012-11-291-2/+2
| | | | It's obvious that this is a guide, and none of the other guides say 'A Guide to'.
* Add periods to the bullet points in guides.Steve Klabnik2012-11-291-3/+3
| | | | Talked with @fxn about this. Bullet points should have periods at the ends.
* copy edits and fixes [ci skip]Vijay Dev2012-11-171-1/+1
|
* Switch to 1.9 hash syntax plus minor fixesAgis Anastasopoulos2012-11-151-93/+93
|
* use em-dashes instead of two minuses in guidesburningTyger2012-11-101-1/+1
|
* Revert "Change with start of translation in internationalization, this time ↵Rafael Mendonça França2012-10-171-5/+5
| | | | | | | | | | | with pt_br." This reverts commit 09682e9e7328b1c1466ae87af08f1785a0b5d7e3. Conflicts: guides/source/en/association_basics.md REASON: Translation work can not be done in the docrails repository
* Revert "divided into folder with the language"Rafael Mendonça França2012-10-171-0/+1997
| | | | | | This reverts commit f5b9ed4fbc3215a5fce48985ea372ad3f1182252. REASON: Translation work can not be done in the docrails repository
* divided into folder with the languageRodrigo Martins2012-10-171-1997/+0
|
* Add CollectionAssociation#destroy to association guideSamuel Cochran2012-10-051-0/+23
|
* Fix broken and duplicate headingsPrem Sichanugrist2012-09-171-2/+2
|
* Fix remaining formatting problems in the guidePrem Sichanugrist2012-09-171-120/+120
|
* Convert image tags to Markdown syntaxPrem Sichanugrist2012-09-171-7/+7
|