| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| |
| |
| | |
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)
|
| |/ |
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
| |
This is to avoid confusing newbies, and to be consistent with the fact
that other options like :foreign_key already allow a symbol or a string.
|
|\
| |
| | |
Sexier migrations
|
| |
| |
| |
| |
| | |
Now you can omit |t| block parameter and all the t. from your migration code, that means, the syntax looks more Rails-3-ish, like the routes DSL and ActionMailer DSL.
Also, this change won't break any of your existing migration files, since the traditional syntax is still available.
|
| |
| |
| |
| | |
Preserve SELECT columns on the COUNT for finder_sql when possible
|
| |
| |
| |
| |
| |
| |
| |
| | |
Building the conditions of a nested through association could
potentially modify the conditions of the through and/or source
association.
This is a Bad Thing.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If a record is removed from a has_many :through, all of the join records
relating to that record should also be removed from the through
association's target.
(Previously the records were removed in the database, but only one was
removed from the in-memory target array.)
|
| |
| |
| |
| | |
Fixes #3425.
|
| |
| |
| |
| |
| | |
Fixes creating records in a through association with a polymorphic source
type.
|
| |
| |
| |
| |
| |
| |
| | |
This change reduces churn in the db/development_structure.sql file when using :sql as
active_record.schema_format, and makes comparing diffs much easier.
Test ensures the output SQL-statements are lexically ordered by version.
|
|\ \ |
|
| | |
| | |
| | |
| | | |
across web workers.
|