- 28 7月, 2012 1 次提交
-
-
由 Yasuo Honda 提交于
to address ORA-01400 errors with Oracle enhanced adapter. The original commit 3c0bf043 requires :json_data_empty attribute has empty string OR null, then setting `:default => ""` is enough.
-
- 27 7月, 2012 1 次提交
-
-
由 Yasuo Honda 提交于
to address ORA-01400 errors with Oracle enhanced adapter. Issue #4856 had been fixed and tested with the attribute `:null => false, :default => ""`. Now `:null => false` attribute is not necessary to test this issue.
-
- 26 7月, 2012 1 次提交
-
-
由 Yasuo Honda 提交于
to make store works all database adapters.
-
- 25 7月, 2012 1 次提交
-
-
由 Yasuo Honda 提交于
Issue #6115 has been fixed and tested with the attribute `:null => false, :default => ""` However `:null => false` attribute is not necessary to test this issue, which causes many ORA-01400 errors with Oracle enhanced adapter.
-
- 25 6月, 2012 1 次提交
-
-
由 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
-
- 22 6月, 2012 1 次提交
-
-
由 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.
-
- 16 5月, 2012 1 次提交
-
-
由 Erich Menge 提交于
-
- 14 5月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 10 5月, 2012 1 次提交
-
-
由 Victor Costan 提交于
-
- 09 5月, 2012 1 次提交
-
-
由 Andrey Voronkov 提交于
-
- 05 5月, 2012 2 次提交
-
-
由 Michael Pearson 提交于
Modify test schema.rb to use a VARCHAR rather than a TEXT when a default is required to keep MySQL happy.
-
由 Piotr Sarnacki 提交于
-
- 30 3月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
-
- 29 3月, 2012 1 次提交
-
-
Overriding implementation can call super.
-
- 28 3月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 08 3月, 2012 1 次提交
-
-
由 Nick Rogers 提交于
-
- 11 2月, 2012 1 次提交
-
-
由 Rick Martinez 提交于
-
- 09 2月, 2012 1 次提交
-
-
由 Marcelo Silveira 提交于
-
- 03 2月, 2012 1 次提交
-
-
由 Jeremy Walker 提交于
-
- 27 1月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
Remove extra attributes from HABTM join tables in AR tests
-
- 17 1月, 2012 1 次提交
-
-
由 David Peter 提交于
If a model belongs_to two associations with the same class, then reset_counters will reset the wrong counter cache. Finding the right reflection should use the foreign_key instead, which should be unique.
-
- 30 12月, 2011 1 次提交
-
-
由 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.
-
- 29 12月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
This is the 'top level' connection, inherited by any models that include ActiveRecord::Model or inherit from ActiveRecord::Base.
-
- 24 12月, 2011 3 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Alvaro Bautista 提交于
-
- 14 10月, 2011 1 次提交
-
-
由 David Heinemeier Hansson 提交于
-
- 13 9月, 2011 1 次提交
-
-
由 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.
-
- 09 9月, 2011 1 次提交
-
-
由 Dmitry Polushkin 提交于
Test polymorphic record with optimistic locking and counter cache should be destoyed without catching the ActiveRecord::StaleObjectError.
-
- 25 7月, 2011 1 次提交
-
-
由 Gabriel Horner 提交于
-
- 24 7月, 2011 1 次提交
-
-
由 Les Fletcher 提交于
fix behavior when after_initialize is defined and a block is passed to Base.create
-
- 12 7月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 09 7月, 2011 2 次提交
-
-
-
由 Tomas D'Stefano 提交于
-
- 15 5月, 2011 2 次提交
-
-
由 Guillermo Iguaran 提交于
-
由 Jon Leighton 提交于
CollectionAssociation#merge_target_lists should write to the underlying attributes when copying, rather than using the assignment method
-
- 11 5月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Add test to specify that attributes from an association's conditions should be assigned without mass-assignment protection when a record is built on the association.
-
- 09 5月, 2011 1 次提交
-
-
由 Christopher Meiklejohn 提交于
-
- 02 5月, 2011 1 次提交
-
-
由 Josh Kalderimis 提交于
singular and collection relations in AR can now specify mass-assignment security options (:as and :without_protection) in build, create and create! methods.
-
- 15 4月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-