Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Minor fixes [ci skip] | Andrey Nering | 2015-06-22 | 1 | -2/+2 |
| | |||||
* | A few documentation tweaks [ci skip] | Robin Dupret | 2015-06-07 | 1 | -2/+3 |
| | | | | [Robin Dupret & Shunsuke Aida] | ||||
* | [ci skip] fix the `collection.clear` guide | Roque Pinel | 2015-06-02 | 1 | -1/+7 |
| | | | | | | | | | | | Improve the guide about `has_many` `collection.clear` to indicate the behavior for each dependent strategy according to `collection.delete_all`. Based on #17179, I changed the `collection.delete` docs to also clarify the default strategy for each `hm` and `hm:t` associations. Fixes #20170. | ||||
* | Fixed typos in guide | manish-shrivastava | 2015-06-01 | 1 | -1/+1 |
| | |||||
* | Merge pull request #20270 from imtayadeway/tw/association-basics-docs | Claudio B. | 2015-05-24 | 1 | -11/+12 |
|\ | | | | | association basics docs fixes | ||||
| * | [ci skip] Fix markdown issue in association basics docs. | Tim Wade | 2015-05-22 | 1 | -1/+1 |
| | | | | | | | | | | The quoted underscore is being intepreted as markdown, causing the entire phrase to be italicized. | ||||
| * | [ci skip] Use spaceship operator to indicate precedence. | Tim Wade | 2015-05-22 | 1 | -1/+1 |
| | | |||||
| * | [ci skip] Fix grammar/syntax in AR assocation basics. | Tim Wade | 2015-05-22 | 1 | -10/+11 |
| | | |||||
* | | Link association.exists?(...) to API docs [ci skip] | Eliot Sykes | 2015-05-22 | 1 | -2/+6 |
|/ | |||||
* | Update association_basics.md | Markov Alexey | 2015-04-19 | 1 | -1/+1 |
| | |||||
* | Improve note about unique index and foreign key on has_one association | Carlos Antonio da Silva | 2015-04-13 | 1 | -6/+7 |
| | | | | Related to f1af967e0055a33c45071848a049ff342e9c291e. [ci skip] | ||||
* | Add note wrt foreign key constraint to ensure data integrity | Zachary Scott | 2015-04-12 | 1 | -0/+10 |
| | | | | | | Thanks for patch @sgrif :trollface: Closes #18216 | ||||
* | Merge pull request #19564 from jonatack/counter_cache_docs | Zachary Scott | 2015-04-12 | 1 | -3/+11 |
|\ | | | | | [skip ci] Fix counter_cache in the Rails Guides | ||||
| * | [skip ci] Fix counter_cache in the Rails Guides | Jon Atack | 2015-03-28 | 1 | -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 Dupret | 2015-04-12 | 1 | -3/+4 |
| | | |||||
* | | [skip ci] primay_key -> primary_key | Jon Atack | 2015-04-11 | 1 | -1/+1 |
| | | |||||
* | | Copy edits for primary_key documentation in association guide. [ci skip] | Zachary Scott | 2015-04-10 | 1 | -3/+4 |
| | | |||||
* | | Merge branch 'belongs_to_primary_key_doc' of ↵ | Zachary Scott | 2015-04-10 | 1 | -0/+19 |
|\ \ | |/ |/| | | | https://github.com/girishso/rails into girishso-belongs_to_primary_key_doc | ||||
| * | added primary_key option documentation for belongs_to association | Girish S | 2014-09-23 | 1 | -0/+19 |
| | | | | | | | | fixes issue #16698 | ||||
* | | [ci skip] use true as value rather than symbol | Akshay Vishnoi | 2015-03-19 | 1 | -1/+1 |
| | | |||||
* | | [ci skip] use false as value rather than symbol | Akshay Vishnoi | 2015-03-19 | 1 | -1/+1 |
| | | |||||
* | | Composite index is [:imageable_type, :imageable_id] [ci skip] | Steve Lounsbury | 2015-03-01 | 1 | -1/+1 |
| | | |||||
* | | Indexing a polymorphic assoc adds index on type and id [ci skip] | Steve Lounsbury | 2015-03-01 | 1 | -1/+1 |
| | | |||||
* | | Tiny documentation edits [ci skip] | Robin Dupret | 2015-02-24 | 1 | -1/+2 |
| | | |||||
* | | Require `belongs_to` by default. | Josef Šimánek | 2015-02-21 | 1 | -0/+5 |
| | | | | | | | | Deprecate `required` option in favor of `optional` for belongs_to. | ||||
* | | Replace deprecated readonly option with scope blocks in docs and guide | Konstantinos Rousis | 2015-02-18 | 1 | -3/+2 |
| | | |||||
* | | Merge branch 'master' of github.com:rails/docrails | Vijay Dev | 2015-02-14 | 1 | -6/+6 |
|\ \ | |||||
| * | | [ci skip] Add some more code highlights. | Juanito Fatas | 2015-02-10 | 1 | -5/+5 |
| | | | |||||
| * | | [ci skip] Add a missing space in t.belongs_to argument. | Juanito Fatas | 2015-01-29 | 1 | -1/+1 |
| | | | |||||
* | | | Add Single Table Inheritance to guides [ci skip] | Andrey Nering | 2015-01-31 | 1 | -0/+64 |
|/ / | |||||
* | | - Changed `IN` to `ON` in markdown renderer condition | Vipul A M | 2015-01-14 | 1 | -1/+1 |
| | | | | | | | | - Changed `IN` to `ON` in all note sentences in guides. | ||||
* | | Minor documentation edits [ci skip] | Robin Dupret | 2014-12-28 | 1 | -0/+1 |
| | | |||||
* | | warn about reading guides in GitHub | Xavier Noria | 2014-12-23 | 1 | -0/+2 |
| | | | | | | | | References #18148. | ||||
* | | You need to specify the counter_cache option on the has_many side of the ↵ | Steve Lounsbury | 2014-12-16 | 1 | -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 Scott | 2014-12-14 | 1 | -19/+19 |
| | | |||||
* | | [ci skip] Remove outdate note of :dependent | Aaron Huang | 2014-11-28 | 1 | -2/+0 |
| | | |||||
* | | [ci skip] Fix some typos, normalize sentence. | Juanito Fatas | 2014-09-08 | 1 | -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_basics2 | Rafael Mendonça França | 2014-08-27 | 1 | -4/+4 |
|\ | | | | | [ci skip] Fix typo of `collection_singular_ids=` method. | ||||
| * | [ci skip] Fix typo of `collection_singular_ids=` method. | yui-knk | 2014-08-27 | 1 | -4/+4 |
| | | |||||
* | | [ci skip] Fix typo of `collection=` method. | yui-knk | 2014-08-27 | 1 | -4/+4 |
|/ | |||||
* | adding indexes on tables in migration scripts | Matt Warren | 2014-07-24 | 1 | -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 Modak | 2014-07-09 | 1 | -6/+6 |
| | |||||
* | Rename Posts to Articles in Guides, continuation of 2d446e77 / #13774 [ci skip] | John Kelly Ferguson | 2014-05-21 | 1 | -20/+20 |
| | |||||
* | [ci skip] Use plain underscore instead of "\_". | Juanito Fatas | 2014-04-13 | 1 | -1/+1 |
| | |||||
* | Updated association_basics.md [ci skip] | Rohit Paul Kuruvilla | 2014-01-31 | 1 | -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 associations | Kuldeep Aggarwal | 2013-11-29 | 1 | -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 Fatas | 2013-10-17 | 1 | -8/+8 |
| | | | | Also clean up some trailing spaces on line 1143-1146. | ||||
* | added "id: false" to HABTM join table example | Ofer Nave | 2013-09-24 | 1 | -1/+1 |
| | | | Based on the instructions further down in section 3.3.2. | ||||
* | Fix the model name in the association basics guides | Rafael Mendonça França | 2013-09-23 | 1 | -1/+4 |
| | | | [ci skip] | ||||
* | cleans the guides sources from fancy non-ASCII stuff | Xavier Noria | 2013-08-23 | 1 | -2/+2 |
| |