- 26 7月, 2014 1 次提交
-
-
由 a3gis 提交于
As of https://github.com/rails/rails/commit/e781aa31fc52a7c696115302ef4d4e02bfd1533b SQLite3Column has been dropped.
-
- 24 7月, 2014 2 次提交
- 22 7月, 2014 1 次提交
-
-
由 Andrey Novikov 提交于
[Andrey Novikov & Łukasz Sarnacki]
-
- 21 7月, 2014 1 次提交
-
-
由 vadivelan 提交于
-
- 19 7月, 2014 2 次提交
-
-
由 Steve 提交于
-
由 Stefan Kanev 提交于
Before this change, create_join_table would not remove the common prefix in the join table name, unlike ActiveRecord::Reflections. A HABTM between Music::Artist and Music::Record would use a table music_artists_records, while create_join table would create music_artists_music_records.
-
- 18 7月, 2014 1 次提交
-
-
由 Rafael Mendonça França 提交于
One of the branches is using a proc to check if the value respond_to a method so it is better to not do case comparations
-
- 17 7月, 2014 3 次提交
-
-
由 eileencodes 提交于
Same as we did for collection, removed the `@macro` instance var and it is now set in each association. Unfortunately it can't be left undefined in AssociationReflection so it has to be set there. For now I am setting it to NotImplementedError since there is no default macro and it changes based on the reflection type.
-
由 Chris Griego 提交于
This option is unused, left over from pre-1.0 Rails to internally distinguish the location of the foreign key.
-
由 Rafael Mendonça França 提交于
-
- 16 7月, 2014 8 次提交
-
-
由 Mariano Valles 提交于
-
由 Mariano Valles 提交于
-
由 Mariano Valles 提交于
-
由 Mariano Valles 提交于
-
由 Gustavo Beathyate 提交于
-
由 Rafael Mendonça França 提交于
These methods are not random so they should not belings to SecureRandom module.
-
由 Gustavo Beathyate 提交于
While running the spec `ARCONN=mysql2 ruby -v -Itest test/cases/yaml_serialization_test.rb` the following warning shows up: `implementing to_yaml is deprecated, please implement "encode_with"`
-
由 Rafael Mendonça França 提交于
This method name is causing confusion with the `reset_#{attribute}` methods. While `reset_name` set the value of the name attribute for the previous value the `reset_changes` only discard the changes and previous changes.
-
- 15 7月, 2014 5 次提交
-
-
由 Godfrey Chan 提交于
Fixed JSON coder when loading NULL from DB
-
由 Rafael Mendonça França 提交于
-
由 Godfrey Chan 提交于
This reverts commit 6f3c64ee. Conflicts: activerecord/CHANGELOG.md
-
由 Jeff Browning 提交于
-
由 Guo Xiang Tan 提交于
-
- 14 7月, 2014 1 次提交
-
-
由 Abdelkader Boudih 提交于
-
- 12 7月, 2014 1 次提交
-
-
由 Gregory Igelmund 提交于
-
- 11 7月, 2014 4 次提交
-
-
由 Sean Griffin 提交于
-
由 Sean Griffin 提交于
-
由 Andrey Novikov 提交于
For example, if use pgcrypto extension in PostgreSQL 9.4 beta 1, where uuid-ossp extension isn't available for moment of writing, and thus to use a gen_random_uuid() method as a primary key default. In this case schema dumper wasn't able to correctly reconstruct create_table statement and lost primary key constraint on schema load. Fixes #16111.
- 08 7月, 2014 1 次提交
-
-
由 eileencodes 提交于
This allows us to decouple AssociationReflection and ThroughReflection making ThroughReflection it's own Reflection bucket in a way. The benefit of this is to be able to remove checks against the macro's symbol for exmaple `macro == :belongs_to`. Get all tests passing again Some of the methods that used to be inherited from MacroReflection through AssociationReflection were no longer getting passed through. They needed to be duplicated into the ThroughReflection. I will extract these out into a separate class. Refactor shared methods into strategy object Now that we've separated ThroughReflection and AssociationReflection we can combine shared methods into one class to avoid duplication. Break out class for each type of reflection This creates a class for each reflection type (has_many, has_one, belongs_to and habtm). We then can remove the need to set the macro symbol in each initialization. Tests were updated to reflect these changes because creation of these reflections is now different. Remove need for @collection instance var We now define `collection?` as `false` by default and set it to `true` in `has_and_belongs_to_many` and `has_many` reflections. This removes the need for the `@collection` instance variable. Raise exception on unknown macro types We shouldn't accept just any macro when creating reflections. An unrecongnized AssociationReflection raises an error. Tests in `reflection_test` were updated to reflect these new changes. `:has_and_belongs_to_many` macro tests were removed because we no longer internally return HABTM.
-
- 07 7月, 2014 6 次提交
-
-
由 Gaurish Sharma 提交于
-
由 Guo Xiang Tan 提交于
-
由 Sean Griffin 提交于
This was only used for uniqueness validations. The first usage was in conjunction with `limit`. Types which cast to string, but are not considered text cannot have a limit. The second case was only with an explicit `:case_sensitive => true` option given by the user.
-
由 Sean Griffin 提交于
-
由 Sean Griffin 提交于
All cases except for `nil` in an array have been removed. `nil` in an array is handled by the Array type object.
-
由 Zachary Scott 提交于
adapter, fixed from #16057 [ci skip]
-
- 06 7月, 2014 3 次提交
-
-
由 Akshay Vishnoi 提交于
-
由 Dylan Thacker-Smith 提交于
-
由 Godfrey Chan 提交于
This reverts commit a0309775. This needs more work before it would work correctly on master.
-