- 17 12月, 2011 1 次提交
-
-
由 Sergey Nartimov 提交于
-
- 16 12月, 2011 6 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
Allows two models to use the same table but have different primary keys.
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 15 12月, 2011 4 次提交
-
-
由 Jon Leighton 提交于
-
由 Andrew Kaspick 提交于
Allow nested attributes in associations to update values in it's owner object. Fixes a regression from 3.0.x
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 14 12月, 2011 4 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
With transactional fixtures enabled, the session records would end up in @_current_transaction_records, and at the end of the transaction, methods would be called on them that would trigger method_missing and trigger attribute methods to be generated. However, at this point the sessions table would not exist, and the columns were not cached, so an exception would be raised because we can't find the columns to generate attribute methods for. Not sure exactly why this didn't crop up before but there have been changes to the schema cache code and perhaps that means that column data that was cached previously at that point is now uncached.
-
由 Jon Leighton 提交于
It was a bad idea to rescue exceptions here. This can interfere with transaction rollbacks which seems to be the cause of current CI failure. Instead, each adapter should implement its own DB-specific O(1) implementation, and we fall back on the generic, slower, implementation otherwise.
-
- 11 12月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 10 12月, 2011 2 次提交
-
-
由 Piotr Sarnacki 提交于
Example: ActiveRecord::Migrator.migrate(path) do |migration| migration.name =~ /User/ end The above example will migrate only migrations with User in the name
-
由 Aaron Patterson 提交于
-
- 09 12月, 2011 8 次提交
-
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
With this commit, ActiveRecord will also look for migrations in db/migrate subdirectories.
-
由 Piotr Sarnacki 提交于
49ebe51 fixed copying migrations, but existing migrations would still trigger warnings. The proper way to compare migrations is to ignore origin lines - if migration is identical it means that we can silently skip it, regardless where it comes from.
-
由 Piotr Sarnacki 提交于
There was a bug in ActiveRecord::Migration.copy method, which prevented adding special comment about the origin of migration. Because of that, the check if migration is identical or if it's not and should be skipped was always saying that migration is skipped, which was causing additional useless warnings about skipped migrations.
-
由 Jon Leighton 提交于
-
由 Aaron Patterson 提交于
-
- 08 12月, 2011 3 次提交
-
-
由 Jon Leighton 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 07 12月, 2011 2 次提交
-
-
由 Aaron Patterson 提交于
-
由 Vasiliy Ermolovich 提交于
-
- 05 12月, 2011 3 次提交
-
-
由 Olek Janiszewski 提交于
The main reason for this change is to fix a bug where `validates_associated` would prevent `accepts_nested_attributes_for` with `allow_destroy: true` from destroying invalid associated records.
-
由 Xavier Noria 提交于
This commit vastly reduces the impact of auto explain logging when enabled, while keeping a negligible cost when disabled. The first implementation was based on the idea of subscribing to "sql.active_record" when needed, and unsubscribing once done. This is the idea behind AR::Relation#explain. Subscribe, collect, unsubscribe. But with the current implementation of notifications unsubscribing is costly, because it wipes an internal cache and that puts a penalty on the next event. So we are switching to an approach where a long-running subscriber is listening. Instead of collecting the queries with a closure in a dedicated subscriber, now we setup a thread local. If the feature is disabled by setting the threshold to nil, the subscriber will call a method that does nothing. That's totally cheap.
-
由 Edgars Beigarts 提交于
-
- 04 12月, 2011 3 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
We also need to time zone convert time zone aware attributes when accessed via read_attribute, not only when via direct access.
-
- 03 12月, 2011 2 次提交
-
-
由 Xavier Noria 提交于
Rationale: As discussed with José and Jon, this convenience shortcut is not clearly justified and it could let the user thing the disabled EXPLAINs are related to the model instance rather than being globally disabled.
-
由 Xavier Noria 提交于
-
- 02 12月, 2011 1 次提交
-
-
由 Xavier Noria 提交于
-