Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 | ||||
* | Merge pull request #22394 from j-dexx/update_association_basics_guide | Jon Moss | 2016-01-18 | 1 | -3/+13 |
|\ | | | | | Updated the guides for having a distinct has_many through at the data… | ||||
| * | Updated the guides for having a distinct has_many through at the database level | James Doyley | 2016-01-18 | 1 | -3/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current example add_index :person_articles, :article, unique: true Does not work, the `:article` column does not exist as it will be a join table (based on the prior example) so should use :article_id The documentation seems to suggest that it will allow an article to be added only once to a person via the join table, what actually occurs is that it only allows the article to be added to one person, at which point it should be a `belongs_to` association. Also changed the new example to use readings based on the prior example | ||||
* | | ApplicationRecord documentation pass | Genadi Samokovarov | 2015-12-17 | 1 | -117/+117 |
| | | | | | | | | | | | | | | This is a pass over the documentation which fills the missing gaps of `ApplicationRecord`. [ci skip] | ||||
* | | Use a real migration version number in docs | Matthew Draper | 2015-12-15 | 1 | -13/+13 |
| | | | | | | | | | | Even though this means more things to change when we bump after a release, it's more important that our examples are directly copyable. | ||||
* | | Use a deliberately-invalid migration version in all doc examples | Matthew Draper | 2015-12-15 | 1 | -13/+13 |
|/ | | | | | | | | | | If we use a real version, at best that'll be an onerous update required for each release; at worst, it will encourage users to write new migrations against an older version than they're using. The other option would be to leave these bare, without any version specifier. But as that's just a variant spelling of "4.2", it would seem to raise the same concerns as above. | ||||
* | Clarify automatic creation/deletion of join models for has_many through | Sean Collins | 2015-11-06 | 1 | -2/+4 |
| | | | | [ci-skip] | ||||
* | Update association_basics.md | raq929 | 2015-11-01 | 1 | -2/+4 |
| | | | | | | | Moves the definition of an association to the top of the page. I am just starting to learn Rails, and having this definition at the top instead of in the second section would be really useful. Updates the Types of Associations section for clarity. Moves the list of associations before the explanation. Links to wikipedia articles on Primary and Foreign keys. | ||||
* | Use #distinct instead of #uniq in the guides [ci skip] | oesgalha | 2015-10-29 | 1 | -3/+3 |
| | | | | | * #uniq is an alias of #distinct * #uniq will be deprecated, see: rails/rails@adfab2dcf4003ca564d78d4425566dd2d9cd8b4f | ||||
* | Fix documentation for has_many dependant options. | Niall Burkley | 2015-09-29 | 1 | -1/+4 |
| | | | | | | | * A `has_many` dependant association accepts `[:destroy, :delete_all, :nullify, :restrict_with_error, :restrict_with_exception]` as options. Currently the documentation references `delete` instead of `delete_all` * Adds documentation for other options | ||||
* | remove association reload option from guide [ci skip] | yuuji.yaginuma | 2015-09-20 | 1 | -12/+20 |
| | | | | The option was deprecated in 6eae366d0d2e5d5211eeaf955f56bd1dc6836758 | ||||
* | [ci skip] migration and association guides: added some remarks about join tables | r11runner | 2015-08-04 | 1 | -0/+13 |
| | |||||
* | Merge pull request #20652 from ankit1910/change_doc | Zachary Scott | 2015-06-27 | 1 | -2/+12 |
|\ | | | | | Change documentation for collection.build and collection.create [ci-skip] | ||||
| * | Change documentation for collection.build and collection.create [ci-skip] | ankit1910 | 2015-06-21 | 1 | -2/+12 |
| | | |||||
* | | 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 |
|/ / |