1. 28 7月, 2012 1 次提交
  2. 27 7月, 2012 1 次提交
  3. 26 7月, 2012 1 次提交
  4. 25 7月, 2012 1 次提交
  5. 25 6月, 2012 1 次提交
    • P
      Revert "Merge pull request #6344" · ceb68d18
      Piotr Sarnacki 提交于
      This commit needs to be reverted because it introduces difficulties when
      using sqlite3 in development and other databases in production. This
      happens because when you create time column in sqlite3, it's dumped as
      datetime in schema.rb file.
      
      This reverts commit 57d534ee, reversing
      changes made to 20f049fb.
      
      Conflicts:
      
      	activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb
      ceb68d18
  6. 22 6月, 2012 1 次提交
    • A
      Improve the derivation of HABTM assocation join table names · 46492949
      Andrew White 提交于
      Improve the derivation of HABTM join table name to take account of nesting.
      It now takes the table names of the two models, sorts them lexically and
      then joins them, stripping any common prefix from the second table name.
      
      Some examples:
      
        Top level models
        (Category <=> Product)
        Old: categories_products
        New: categories_products
      
        Top level models with a global table_name_prefix
        (Category <=> Product)
        Old: site_categories_products
        New: site_categories_products
      
        Nested models in a module without a table_name_prefix method
        (Admin::Category <=> Admin::Product)
        Old: categories_products
        New: categories_products
      
        Nested models in a module with a table_name_prefix method
        (Admin::Category <=> Admin::Product)
        Old: categories_products
        New: admin_categories_products
      
        Nested models in a parent model
        (Catalog::Category <=> Catalog::Product)
        Old: categories_products
        New: catalog_categories_products
      
        Nested models in different parent models
        (Catalog::Category <=> Content::Page)
        Old: categories_pages
        New: catalog_categories_content_pages
      
      Also as part of this commit the validity checks for HABTM assocations have
      been moved to ActiveRecord::Reflection One side effect of this is to move when
      the exceptions are raised from the point of declaration to when the association
      is built. This is consistant with other association validity checks.
      46492949
  7. 16 5月, 2012 1 次提交
  8. 14 5月, 2012 1 次提交
  9. 10 5月, 2012 1 次提交
  10. 09 5月, 2012 1 次提交
  11. 05 5月, 2012 2 次提交
  12. 30 3月, 2012 1 次提交
  13. 29 3月, 2012 1 次提交
  14. 28 3月, 2012 1 次提交
  15. 08 3月, 2012 1 次提交
  16. 11 2月, 2012 1 次提交
  17. 09 2月, 2012 1 次提交
  18. 03 2月, 2012 1 次提交
  19. 27 1月, 2012 1 次提交
  20. 17 1月, 2012 1 次提交
  21. 30 12月, 2011 1 次提交
    • A
      Test fixtures with custom model and table names · 6468ff41
      Alexey Muranov 提交于
      Test using fixtures with random names and model names, that is not following naming conventions but using set_fixture_class instead.
      
      It is expected that the table name be defined in the model, but this is not explicitly tested here.  This will need to be fixed.
      6468ff41
  22. 29 12月, 2011 1 次提交
  23. 24 12月, 2011 3 次提交
  24. 14 10月, 2011 1 次提交
  25. 13 9月, 2011 1 次提交
    • J
      Raise error when using write_attribute with a non-existent attribute. · 50d395f9
      Jon Leighton 提交于
      Previously we would just silently write the attribute. This can lead to
      subtle bugs (for example, see the change in AutosaveAssociation where a
      through association would wrongly gain an attribute.
      
      Also, ensuring that we never gain any new attributes after
      initialization will allow me to reduce our dependence on method_missing.
      50d395f9
  26. 09 9月, 2011 1 次提交
  27. 25 7月, 2011 1 次提交
  28. 24 7月, 2011 1 次提交
  29. 12 7月, 2011 1 次提交
  30. 09 7月, 2011 2 次提交
  31. 15 5月, 2011 2 次提交
  32. 11 5月, 2011 1 次提交
  33. 09 5月, 2011 1 次提交
  34. 02 5月, 2011 1 次提交
  35. 15 4月, 2011 1 次提交