Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use https instead of http in guide [ci skip] | Yoshiyuki Hirano | 2017-08-23 | 1 | -1/+1 |
| | |||||
* | [ci skip] Updated language on validations. | Daniel Castro | 2017-07-09 | 1 | -2/+2 |
| | |||||
* | [ci skip] Update redirecting links in guides | kei-s | 2016-07-12 | 1 | -2/+2 |
| | |||||
* | [ci skip] Update all guides with `null: false` change in migrations | Prathamesh Sonpatki | 2016-03-03 | 1 | -1/+1 |
| | | | | | | | - We no longer add `null: false` for timestamps columns as per rails/rails@a939506. - Followup of https://github.com/rails/docrails/commit/14867b1a9af813b0147bba2ae06675137d61d77b. | ||||
* | Revert "Merge pull request #23366 from maclover7/add-configuation-ar-docs" | Rafael Mendonça França | 2016-02-01 | 1 | -102/+0 |
| | | | | | | | This reverts commit 96355e87cba247246234386b0af9273cc5d59db9, reversing changes made to a00c36feea6c0271b5ad48a949ef294514fdef52. See https://github.com/rails/rails/pull/23366#issuecomment-177714429 | ||||
* | Remove odd ` [ci skip] | Ryuta Kamizono | 2016-01-31 | 1 | -1/+1 |
| | |||||
* | Add configuration section to "Active Record Basics" guide | Jon Moss | 2016-01-30 | 1 | -0/+102 |
| | | | | | | | | | | | | This is to fill in some missing information as apart of #22931. It's on purpose that the sample `Message` model inherits from `ActiveRecord::Base` -- Active Record is not meant to be coupled to Rails, and we can't guarantee that users outside of the Rails world will have an `ApplicationRecord` class that inherits from `ActiveRecord::Base`. [ci skip] | ||||
* | Refer to rails command instead of rake in a bunch of places | David Heinemeier Hansson | 2015-12-18 | 1 | -2/+2 |
| | | | | Still more to do. Please assist! | ||||
* | Fix documentation about ApplicationRecord | Rafael Mendonça França | 2015-12-16 | 1 | -1/+1 |
| | | | | [ci skip] | ||||
* | Introduce ApplicationRecord, an Active Record layer supertype | Genadi Samokovarov | 2015-12-16 | 1 | -7/+8 |
| | | | | | | | | | | | | | | | | It's pretty common for folks to monkey patch `ActiveRecord::Base` to work around an issue or introduce extra functionality. Instead of shoving even more stuff in `ActiveRecord::Base`, `ApplicationRecord` can hold all those custom work the apps may need. Now, we don't wanna encourage all of the application models to inherit from `ActiveRecord::Base`, but we can encourage all the models that do, to inherit from `ApplicationRecord`. Newly generated applications have `app/models/application_record.rb` present by default. The model generators are smart enough to recognize that newly generated models have to inherit from `ApplicationRecord`, but only if it's present. | ||||
* | Use a real migration version number in docs | Matthew Draper | 2015-12-15 | 1 | -1/+1 |
| | | | | | 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 | -1/+1 |
| | | | | | | | | | | 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. | ||||
* | [ci skip] SQL is written using statements, not sentences | Brooks Reese | 2015-08-13 | 1 | -1/+1 |
| | |||||
* | docs, use hash instead of a string for `order`. [ci skip] | Yves Senn | 2015-08-10 | 1 | -1/+1 |
| | | | | Closes #21121 | ||||
* | Grammar fix to Active Record Basics guide. [ci skip] | Brian Davis | 2015-05-24 | 1 | -2/+2 |
| | |||||
* | - Make example code consistent for better understanding. [ci skip] | Santosh Wadghule | 2015-03-18 | 1 | -5/+5 |
| | |||||
* | Fix wrong model name for 'Articles', It should be 'Article' [ci skip] | Santosh Wadghule | 2015-03-18 | 1 | -1/+1 |
| | | | | - Also changed 'a' to 'an' for 'Article' word. | ||||
* | [ci skip] Fix dead link | yui-knk | 2015-03-16 | 1 | -1/+1 |
| | | | | | | | getting_started.html#the-mvc-architecture is lost by this commit 2f06c94e38a116fdfa43d7b7117e6bf911a0bff5 (Mar 14 2012 !). So replace it with wikipedia link. | ||||
* | [ci skip] Fix `Object-Relational` to `Object Relational` | yui-knk | 2015-02-24 | 1 | -1/+1 |
| | |||||
* | Merge pull request #18503 from vipulnsward/guides-in-on | Xavier Noria | 2015-01-14 | 1 | -1/+1 |
|\ | | | | | Changed `IN` to `ON` in markdown renderer condition | ||||
| * | - 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 grammatical fix in documentation | Jade McGough | 2015-01-12 | 1 | -1/+1 |
|/ | |||||
* | warn about reading guides in GitHub | Xavier Noria | 2014-12-23 | 1 | -0/+2 |
| | | | | References #18148. | ||||
* | Add `null` option to timestamps as migration generator does [ci skip] | Zachary Scott | 2014-12-14 | 1 | -1/+1 |
| | |||||
* | Fix typo in "Active Record Basics" guide. [ci skip] | nakadai | 2014-10-24 | 1 | -1/+1 |
| | |||||
* | Update single table inheritance link anchor | Su Zhang (張甦) | 2014-09-30 | 1 | -1/+1 |
| | | | The current one is old-of-date and doesn't make the browser navigation to the correct heading. | ||||
* | `create` return an active record object with erros instead of false when ↵ | Tony Jian | 2014-07-23 | 1 | -4/+5 |
| | | | | validation fails. [skip ci] | ||||
* | Rename Posts to Articles in Guides, continuation of 2d446e77 / #13774 [ci skip] | John Kelly Ferguson | 2014-05-21 | 1 | -9/+9 |
| | |||||
* | fixed typos in active_record basics [skip ci] | vanderhoop | 2014-05-07 | 1 | -2/+2 |
| | |||||
* | Some fixes in docs [ci skip] | Malav Bhavsar | 2013-10-11 | 1 | -1/+1 |
| | | | | | | Update a link to point to right section in api docs Fix a typo | ||||
* | [ci skip] Add missing periods and update link name and some wording. | Juanito Fatas | 2013-09-26 | 1 | -11/+11 |
| | |||||
* | Plural of Deer not deer | Sergio | 2013-09-10 | 1 | -1/+1 |
| | | | Change the plural of Deer word in the naming conventions | ||||
* | Removing instances of string class_names in fixtures. | wangjohn | 2013-08-24 | 1 | -1/+1 |
| | | | | | | | Also, constantizing the default_fixture_model_name when it gets loaded in from the file. Later, when the class_name is passed to a new FixtureSet, a deprecation warning will occur if the class_name is a string. | ||||
* | Remove set_primary_key, replace with primary_key= | Luka Marčetić | 2013-08-21 | 1 | -2/+2 |
| | | | First deprecated, now removed: https://github.com/rails/rails/commit/9add7608f1acaa68b025470e7a38901d7e6161ca#activerecord/lib/active_record/attribute_methods/primary_key.rb | ||||
* | Fix 2 grammatical errors/typos in Active Record Basics guide. [ci skip] | Daniel Dawson | 2013-07-08 | 1 | -2/+2 |
| | |||||
* | Using preferred find_by syntax in guides | Cristian Planas | 2013-07-01 | 1 | -4/+4 |
| | |||||
* | correction standr => standard of commits @0435d0e | Rajarshi Das | 2013-06-06 | 1 | -1/+1 |
| | |||||
* | reword for grammar and clarity | Graham Madden | 2013-05-31 | 1 | -3/+3 |
| | |||||
* | Change deprecated validates_presence_of | Zoltan Debre | 2013-04-05 | 1 | -1/+1 |
| | | | In Validations section the example contained "validates_presence_of" which is deprecated. It should be "validates :name, presence: true" | ||||
* | add `(association)`_type to schema convetions in AR basics guide. | Yves Senn | 2013-04-03 | 1 | -0/+2 |
| | |||||
* | link the Active Record pattern to the EAA Catalog | Yves Senn | 2013-04-03 | 1 | -4/+5 |
| | |||||
* | remove trailing whitespace from AR Basics guide | Yves Senn | 2013-04-03 | 1 | -94/+94 |
| | |||||
* | Update guides/source/active_record_basics.md | Benoit Caccinolo | 2013-01-11 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2013-01-09 | 1 | -2/+2 |
|\ | | | | | | | | | Conflicts: guides/source/getting_started.md | ||||
| * | A Relation is not a collection of records. So let's not use the term "record" | Akira Matsuda | 2013-01-04 | 1 | -2/+2 |
| | | |||||
| * | .all does not return an Array | Akira Matsuda | 2013-01-04 | 1 | -1/+1 |
| | | |||||
* | | Change guides to use update instead of update_attributes | Amparo Luna + Guillermo Iguaran | 2013-01-03 | 1 | -3/+3 |
|/ | |||||
* | General refreshment of the Active Record Basics guide | Pablo Torres | 2012-12-12 | 1 | -42/+182 |
| | |||||
* | Fix Active Record validation error messages markup in guides | Carlos Antonio da Silva | 2012-12-04 | 1 | -21/+21 |
| | | | | | | | | | | The other way it was not marking the text as italic, it was showing the underlines as normal text. Also fixes some code examples indentation and # => marks in Active Model and Active Record guides. [ci skip] | ||||
* | Normalize on 'After reading this guide, you will know:' | Steve Klabnik | 2012-11-29 | 1 | -1/+3 |
| | | | | | We have three or four different introduction sentences to the guides. After this commit, we use the same one everywhere. |