| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
| | | |
| | | |
| | | | |
Asssigning a parent id to a belongs_to association actually updates the object that is validated when the association has :validates => true
|
|\ \ \ \
| | | | |
| | | | | |
Bump Mysql2!
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
This reverts commit 1756629835d39f60ef4c96aff81ac503c71b98b7.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
New records should load has_many relationships with custom primary keys
|
| |/ / / /
| | | | |
| | | | |
| | | | | |
present but the record is unsaved
|
| |/ / /
|/| | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Rationale: this is more readable if serveral queries
are involved in one call. Also, it will be possible
to let AR log EXPLAINs automatically in production
mode, where queries are not even around.
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The following constants were renamed:
ActiveModel::Serialization => ActiveModel::Serializable
ActiveModel::Serializers::JSON => ActiveModel::Serializable::JSON
ActiveModel::Serializers::Xml => ActiveModel::Serializable::XML
The main motivation for such a change is that `ActiveModel::Serializers::JSON`
was not actually a serializer, but a module that when included allows the target to be serializable to JSON.
With such changes, we were able to clean up the namespace to add true serializers as the ArraySerializer.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
If we're deleting all records in an association, don't add a IN(..)
clause to the query.
Fixes #3672.
|
| | |
| | |
| | |
| | | |
performance problem (GH #3678)
|
| | |
| | |
| | | |
Fixes #3678
|
| | |
| | |
| | |
| | | |
Fix regression introduced by 38d26b0cb56d82093889efa95992a35ba3bb9f29
|
|\ \ \
| | | |
| | | | |
Cleanup of databases.rake psql env variables
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This reverts commit 0e407a90413d8a19002b85508d811ccdf2190783, reversing
changes made to 533a9f84b035756eedf9fdccf0c494dc9701ba72.
Conflicts:
activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
activerecord/test/cases/migration_test.rb
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit 81fad6a270ec3cbbb88553c9f2e8200c34fd4d13, reversing
changes made to 23101de283de13517e30c4c3d1ecc65525264886.
Conflicts:
activerecord/test/cases/migration_test.rb
|
| | |
| | |
| | | |
same as 4c1a1933cbc5ab96efe340a3b31ac5fee12c99c8
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
This commit contains a simple failing test that demonstrates the behaviour we expect, and a fix. When using `becomes` to transform the type of an object, it should retain any error information that was present on the original instance.
|
| | | |
|
|\ \ \
| | | |
| | | | |
schema_format :sql should behave like schema_format :ruby
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This commit adds a db:structure:load task that is run instead of
db:schema:load when schema_format is set to :sql. This patch also removes
the prefixing of the structure.sql files to mimic the use of a single
schema.rb file. The patch originates from github issue #715.
|
| |/ /
|/| |
| | |
| | | |
in find conditions. Paired with Joey Schoblaska.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
A recent change made to create_table does away with the
need for the block argument. Checking the arity will prevent the
mixing up of the two syntaxes.
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
Conflicts:
railties/guides/source/active_record_querying.textile
|
| | | | |
|
| | | | |
|
| | | | |
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
nulogy/fix_postgres_adapter_to_handle_spaces_between_schemas
Fix postgres adapter to handle spaces between schemas
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
"Returns true if the specified attribute has been set by the user or by
a database load and is neither nil nor empty?"
Fixes #1613
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is a first implementation, EXPLAIN is highly
dependent on the database and I have made some
compromises.
On one hand, the method allows you to run the most
common EXPLAIN and that's it. If you want EXPLAIN
ANALYZE in PostgreSQL you need to do it by hand.
On the other hand, I've tried to construct a string
as close as possible to the ones built by the
respective shells. The rationale is that IMO the
user should feel at home with the output and
recognize it at first sight. Per database.
I don't know whether this implementation is going
to work well. Let's see whether people like it.
|
|\ \ \
| | | |
| | | | |
Fixed an issue id false option is ignored on mysql/mysql2 (fix #3440)
|
| |/ / |
|
| | | |
|
| | | |
|