1. 31 1月, 2016 1 次提交
  2. 19 1月, 2016 3 次提交
  3. 18 1月, 2016 1 次提交
    • J
      Updated the guides for having a distinct has_many through at the database level · f72fe2d5
      James Doyley 提交于
      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
      f72fe2d5
  4. 17 12月, 2015 1 次提交
  5. 15 12月, 2015 2 次提交
    • M
      Use a real migration version number in docs · 97c77160
      Matthew Draper 提交于
      Even though this means more things to change when we bump after a
      release, it's more important that our examples are directly copyable.
      97c77160
    • M
      Use a deliberately-invalid migration version in all doc examples · c0af95e0
      Matthew Draper 提交于
      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.
      c0af95e0
  6. 07 11月, 2015 1 次提交
  7. 02 11月, 2015 1 次提交
    • R
      Update association_basics.md · aaddae48
      raq929 提交于
      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.
      aaddae48
  8. 29 10月, 2015 1 次提交
  9. 29 9月, 2015 1 次提交
    • N
      Fix documentation for has_many dependant options. · 391043ab
      Niall Burkley 提交于
      * 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
      391043ab
  10. 20 9月, 2015 1 次提交
  11. 04 8月, 2015 1 次提交
  12. 23 6月, 2015 1 次提交
  13. 22 6月, 2015 1 次提交
  14. 07 6月, 2015 1 次提交
  15. 03 6月, 2015 1 次提交
    • R
      [ci skip] fix the `collection.clear` guide · efa1648f
      Roque Pinel 提交于
      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.
      efa1648f
  16. 01 6月, 2015 1 次提交
  17. 23 5月, 2015 3 次提交
  18. 22 5月, 2015 1 次提交
  19. 19 4月, 2015 1 次提交
  20. 13 4月, 2015 2 次提交
  21. 12 4月, 2015 1 次提交
  22. 11 4月, 2015 2 次提交
  23. 28 3月, 2015 1 次提交
    • J
      [skip ci] Fix counter_cache in the Rails Guides · 676514c0
      Jon Atack 提交于
      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.
      676514c0
  24. 19 3月, 2015 2 次提交
  25. 02 3月, 2015 2 次提交
  26. 25 2月, 2015 1 次提交
  27. 22 2月, 2015 1 次提交
  28. 18 2月, 2015 1 次提交
  29. 10 2月, 2015 1 次提交
  30. 01 2月, 2015 1 次提交
  31. 29 1月, 2015 1 次提交