aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_record_basics.md
Commit message (Collapse)AuthorAgeFilesLines
* tweaks for #31704 [ci skip]Ryuta Kamizono2018-01-241-2/+2
| | | | | * rDBMS -> RDBMS. There is only place using rDBMS. * a SQL -> an SQL
* Clarification for noobs. (#31704)loothunter12018-01-231-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update active_record_basics.md I made a bit of clarification for people, who are not familiar with SQL (pretty much like me). However, I don't know what tutorial for MySQL is better, so I haven't inserted a link yet. * [ci skip] For those who new to GitHub Added more instructions for contributing guides. Without them, it was somewhat confusing for me to find what I should actually do. * Update active_record_basics.md Fixed grammar and text wrapping as requested. * Update contributing_to_ruby_on_rails.md Revised instructions. * Update contributing_to_ruby_on_rails.md Typos * Update active_record_basics.md * [ci skip] Update active_record_basics Added a few links to SQL tutorials found on the net. Also, changed MySQL to SQL (or one of its extensions) - I think that it's a good compromise. * [ci skip] I think now it's more clear what to do. * [ci skip] Fixed strings [Rafael Mendonça França + loothunter1]
* [ci skip] Added Object Relational Mapping wiki linkDixit Patel2017-12-191-1/+1
|
* Add mention how to delete several records in bulk to Active Record Basics ↵bogdanvlviv2017-10-181-0/+11
| | | | Guides [ci skip]
* Use https instead of http in guide [ci skip]Yoshiyuki Hirano2017-08-231-1/+1
|
* [ci skip] Updated language on validations.Daniel Castro2017-07-091-2/+2
|
* [ci skip] Update redirecting links in guideskei-s2016-07-121-2/+2
|
* [ci skip] Update all guides with `null: false` change in migrationsPrathamesh Sonpatki2016-03-031-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ça2016-02-011-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 Kamizono2016-01-311-1/+1
|
* Add configuration section to "Active Record Basics" guideJon Moss2016-01-301-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 placesDavid Heinemeier Hansson2015-12-181-2/+2
| | | | Still more to do. Please assist!
* Fix documentation about ApplicationRecordRafael Mendonça França2015-12-161-1/+1
| | | | [ci skip]
* Introduce ApplicationRecord, an Active Record layer supertypeGenadi Samokovarov2015-12-161-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 docsMatthew Draper2015-12-151-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 examplesMatthew Draper2015-12-151-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 sentencesBrooks Reese2015-08-131-1/+1
|
* docs, use hash instead of a string for `order`. [ci skip]Yves Senn2015-08-101-1/+1
| | | | Closes #21121
* Grammar fix to Active Record Basics guide. [ci skip]Brian Davis2015-05-241-2/+2
|
* - Make example code consistent for better understanding. [ci skip]Santosh Wadghule2015-03-181-5/+5
|
* Fix wrong model name for 'Articles', It should be 'Article' [ci skip]Santosh Wadghule2015-03-181-1/+1
| | | | - Also changed 'a' to 'an' for 'Article' word.
* [ci skip] Fix dead linkyui-knk2015-03-161-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-knk2015-02-241-1/+1
|
* Merge pull request #18503 from vipulnsward/guides-in-onXavier Noria2015-01-141-1/+1
|\ | | | | Changed `IN` to `ON` in markdown renderer condition
| * - Changed `IN` to `ON` in markdown renderer conditionVipul A M2015-01-141-1/+1
| | | | | | | | - Changed `IN` to `ON` in all note sentences in guides.
* | minor grammatical fix in documentationJade McGough2015-01-121-1/+1
|/
* warn about reading guides in GitHubXavier Noria2014-12-231-0/+2
| | | | References #18148.
* Add `null` option to timestamps as migration generator does [ci skip]Zachary Scott2014-12-141-1/+1
|
* Fix typo in "Active Record Basics" guide. [ci skip]nakadai2014-10-241-1/+1
|
* Update single table inheritance link anchorSu Zhang (張甦)2014-09-301-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 Jian2014-07-231-4/+5
| | | | validation fails. [skip ci]
* Rename Posts to Articles in Guides, continuation of 2d446e77 / #13774 [ci skip]John Kelly Ferguson2014-05-211-9/+9
|
* fixed typos in active_record basics [skip ci]vanderhoop2014-05-071-2/+2
|
* Some fixes in docs [ci skip]Malav Bhavsar2013-10-111-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 Fatas2013-09-261-11/+11
|
* Plural of Deer not deerSergio2013-09-101-1/+1
| | | Change the plural of Deer word in the naming conventions
* Removing instances of string class_names in fixtures.wangjohn2013-08-241-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-211-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 Dawson2013-07-081-2/+2
|
* Using preferred find_by syntax in guidesCristian Planas2013-07-011-4/+4
|
* correction standr => standard of commits @0435d0eRajarshi Das2013-06-061-1/+1
|
* reword for grammar and clarityGraham Madden2013-05-311-3/+3
|
* Change deprecated validates_presence_ofZoltan Debre2013-04-051-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 Senn2013-04-031-0/+2
|
* link the Active Record pattern to the EAA CatalogYves Senn2013-04-031-4/+5
|
* remove trailing whitespace from AR Basics guideYves Senn2013-04-031-94/+94
|
* Update guides/source/active_record_basics.mdBenoit Caccinolo2013-01-111-1/+1
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-01-091-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 Matsuda2013-01-041-2/+2
| |
| * .all does not return an ArrayAkira Matsuda2013-01-041-1/+1
| |