Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | change `t.integer` to `t.bigint` where applicable | lxxxvi | 2019-04-07 | 1 | -8/+8 |
| | |||||
* | [skip ci] Add examples for has_{one,many} :through :source and :source_type ↵ | Tim Wade | 2019-04-03 | 1 | -0/+29 |
| | | | | | | | | (#35612) * Add example for has_many :through source/source_type * Add example for has_one :through source/source_type | ||||
* | Add note about has_many associations callbacks [ci skip] | Rodrigo | 2019-03-12 | 1 | -0/+11 |
| | | | | Add a note explaining when the has_many associations callbacks will be called or not. | ||||
* | Update links and code examples in the guides to use HTTPS where the host ↵ | Nathaniel Suchy | 2019-03-06 | 1 | -4/+4 |
| | | | | supports it. | ||||
* | Refs #28025 nullify *_type column on polymorphic associations on :nu… ↵ | Laerti | 2019-01-15 | 1 | -2/+2 |
| | | | | | | (#28078) This PR addresses the issue described in #28025. On `dependent: :nullify` strategy only the foreign key of the relation is nullified. However on polymorphic associations the `*_type` column is not nullified leaving the record with a NULL `*_id` but the `*_type` column is present. | ||||
* | fix typo on association_basics.md [ci skip] | Espartaco Palma | 2018-11-14 | 1 | -1/+1 |
| | |||||
* | Describe how has_many's :dependent option affects #delete | Marcel M. Cary | 2018-11-13 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | I was puzzled about why `collection=` was destroying the removed records on an association with `dependent: :destroy`, even after consulting the documentation for that option. I had to dive into the Active Record source to understand what was going on: eventually `collection=` calls `collection.delete` on the ousted records, and it also uses the `:dependent` option to decide how to remove records. It would have helped me to have mention of this in the documentation for `:dependent`, not just under `collection.delete` (which I found much later). Briefly mention the broader impacts of `:dependent` in the Association Basics guide. [ci skip] | ||||
* | Document exception from restrict_with_exception [ci skip] | Malcolm Locke | 2018-10-29 | 1 | -2/+2 |
| | |||||
* | [ci skip] Fix #33914 | Raghu Kamat | 2018-10-22 | 1 | -3/+2 |
| | | | | | This commit removes the dependent: :destroy option from the belong_to example since there is a warning associated with the usage of dependent: :destroy along with belongs_to. Based on the feedback on the issue #33914, I replaced dependent: :destroy with touch: :books_updated_at which will make the example consistent with the example that already exists on that page. * Also Removing the touch option from the belong_to scopes example as the option doesnt have any relation to association scope. | ||||
* | Remove and flip `index: true` for `references` in the doc [ci skip] | Ryuta Kamizono | 2018-10-17 | 1 | -1/+1 |
| | | | | Follow up #32146. | ||||
* | Merge pull request #32146 from abhikanojia/association_guide_fix | Ryuta Kamizono | 2018-10-17 | 1 | -10/+10 |
|\ | | | | | | | | | Remove index:true option from belongs to as defaults to true. [ci skip] | ||||
| * | Remove index:true option from belongs to as defaults to true. | abhishekkanojia | 2018-03-01 | 1 | -10/+10 |
| | | |||||
* | | Replace line items with chapters [ci skip] | Ian Fleeton | 2018-09-21 | 1 | -13/+13 |
| | | | | | | | | | | Line items are a holdover from when orders were used in the examples instead of books. | ||||
* | | Rails guides are now served over https | Paul McMahon | 2018-07-24 | 1 | -1/+1 |
| | | | | | | | | | | http links will be redirected to the https version, but still better to just directly link to the https version. | ||||
* | | [ci skip] fix typo in Associations guide | K. Rodman Mannix | 2018-07-22 | 1 | -1/+1 |
| | | |||||
* | | Add situation for belongs to association. [ci skip] | lanzhiheng | 2018-07-18 | 1 | -1/+1 |
| | | |||||
* | | Added a lot of Oxford commas | Anthony Crumley | 2018-05-10 | 1 | -2/+2 |
| | | | | | | | | | | | | | | [ci skip] A regular expression was used to find a lot of missing Oxford commas and add them. The regular expression was as follows. ", ([a-zA-Z0-9.\`:'\"]+ ){1,6}(or|and) " | ||||
* | | [ci skip] belongs_to in self join association needs optional: true, if it's ↵ | nao0515ki | 2018-04-14 | 1 | -1/+1 |
| | | | | | | | | over 5.0 ver of rails | ||||
* | | Put images into each page's dir in guides | Yoshiyuki Hirano | 2018-03-31 | 1 | -7/+7 |
| | | |||||
* | | Fix example migrations in Associations guide | Ryan Lue | 2018-01-26 | 1 | -17/+9 |
| | | |||||
* | | Fix minor typo [ci skip] | Tom Copeland | 2018-01-18 | 1 | -4/+4 |
| | | | | | | | | Updated the method counts and unified them all on numerals. | ||||
* | | Merge pull request #31446 from bdewater/inverse-of-options-docs | Ryuta Kamizono | 2018-01-11 | 1 | -14/+5 |
|\ \ | | | | | | | | | | Fix :inverse_of documentation | ||||
| * | | [ci skip] setting :inverse_of works with :as, :through and :polymorphic ↵ | Bart de Water | 2018-01-10 | 1 | -17/+9 |
|/ / | | | | | | | | | | | | | | | options, and is needed for bi-directionality with a scope [ci skip] Remove :conditions opion from association basics guide This got replaced by scopes. | ||||
* / | Update "Active Record Associations" guide [ci skip] | bogdanvlviv | 2017-12-14 | 1 | -3/+5 |
|/ | | | | | | - Make all `ActiveRecord::Base.find` as link - Remove redundant sentences "It also adds the additional condition that the object must be in the collection." | ||||
* | Update Rails Guides about :autosave option | Anton Chumakov | 2017-09-20 | 1 | -4/+4 |
| | |||||
* | Merge pull request #30394 from ydakuka/fixing-indentation | Ryuta Kamizono | 2017-08-24 | 1 | -6/+6 |
|\ | | | | | Fix indentation [ci skip] | ||||
| * | Fix indentation [ci skip] | Yauheni Dakuka | 2017-08-24 | 1 | -6/+6 |
| | | |||||
* | | Merge pull request #30376 from willnet/belongs-to-dependent-option | Ryuta Kamizono | 2017-08-24 | 1 | -6/+5 |
|\ \ | |/ |/| | [ci skip]Revert commits changing wrong place | ||||
| * | [ci skip]Revert commits changing wrong place | willnet | 2017-08-24 | 1 | -6/+5 |
| | | | | | | | | | | | | This reverts commits 5147ab121d628f29451c654a8c312d5a3f491ffb and 391043ab04007bfd4c4c4c8e8d3308c1eae60175. These commits looked to intend to change documents of has_many dependent options, but actually changed documents of belongs_to dependent options. | ||||
* | | add missing collection.reload documentation [ci skip] | Julia López | 2017-08-08 | 1 | -2/+24 |
| | | |||||
* | | add reload_association to documentation [ci skip] | Julia López | 2017-08-07 | 1 | -4/+6 |
|/ | |||||
* | [ci skip] Add backquote to :counter_cache option | Yohei Yasukawa | 2017-06-10 | 1 | -1/+1 |
| | |||||
* | remove the extra comma in association_basics.md | Yauheni Dakuka | 2017-06-09 | 1 | -1/+1 |
| | |||||
* | [ci skip]fix wrong variable name in docs | Makoto Nihei | 2017-05-25 | 1 | -1/+1 |
| | |||||
* | [ci skip]fix wrong method name in docs | willnet | 2017-05-24 | 1 | -2/+2 |
| | |||||
* | Improve foreign key description in guides [ci skip] | Krzysztof Maicher | 2017-03-06 | 1 | -2/+18 |
| | |||||
* | passing unique parameter to belongs_to wrongly | 0oneo | 2017-03-03 | 1 | -1/+1 |
| | | | passing `unique` parameter to belongs_to not right, | ||||
* | Clarify Bi-directional Associations docs | David Sherline | 2017-01-03 | 1 | -23/+41 |
| | | | | | | | | | | | Rails automatically finds bi-directional associations between models with well-named associations. However, when using non-standard naming, you have to use :inverse_of to explicitly tell Rails about the bi- directional association. With reference to #27516 [ci skip] | ||||
* | Update HABTM documentation in guides | James Doyley | 2016-10-26 | 1 | -3/+1 |
| | |||||
* | [ci skip] Simply formatting documents | Neodelf | 2016-09-06 | 1 | -5/+5 |
| | |||||
* | Grammar fix [ci skip] | Waitaya Krongapiradee | 2016-09-02 | 1 | -1/+1 |
| | |||||
* | Docs: Clarify when assoc. methods persist | Jared Beck | 2016-05-26 | 1 | -4/+4 |
| | | | | | | | Because I can never remember if `collection_singular_ids=` persists or not (it does). [ci skip] | ||||
* | Update how to clear the association cache | Sammy Larbi | 2016-03-28 | 1 | -2/+2 |
| | | | Passing `true` to the association has been deprecated. | ||||
* | Clarify has_many :dependent option docs [ci skip] | Chris Arcand | 2016-03-11 | 1 | -9/+7 |
| | | | | | | Clarifies the documentation here to mean all options are for when the relation is destroyed; also now reflects the documentation on this same option found in the has_one section. | ||||
* | [ci skip] Update all guides with `null: false` change in migrations | Prathamesh Sonpatki | 2016-03-03 | 1 | -19/+19 |
| | | | | | | | - We no longer add `null: false` for timestamps columns as per rails/rails@a939506. - Followup of https://github.com/rails/docrails/commit/14867b1a9af813b0147bba2ae06675137d61d77b. | ||||
* | [ci skip] fix typos | Mikhail Dieterle | 2016-02-14 | 1 | -3/+3 |
| | |||||
* | [ci skip] fix typo | Mikhail Dieterle | 2016-01-30 | 1 | -1/+1 |
| | |||||
* | Fix discrepancies in associations guide [ci skip] | Prathamesh Sonpatki | 2016-01-19 | 1 | -6/+6 |
| | | | | - Followup of https://github.com/rails/rails/commit/71ff088a09d429657877ddfb58985d30df63fc8a | ||||
* | `ApplicationRecord` instead of `ActiveRecord::Base` in Association Guides ↵ | amitkumarsuroliya | 2016-01-19 | 1 | -2/+2 |
| | | | | [ci skip] | ||||
* | Association Guide replaces Order as example with Author-Book Example [ci skip] | amitkumarsuroliya | 2016-01-18 | 1 | -230/+230 |
| | | | fixes #21500 |