Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | on and ON are type casted to a true boolean column | Santiago Pastorino | 2012-01-11 | 1 | -2/+2 |
| | |||||
* | Document that index names are made up of all columns, not just the first. | Jo Liss | 2011-12-29 | 1 | -9/+2 |
| | | | | | | | | | | | index_name has been using the following expression "index_#{table_name}_on_#{Array.wrap(options[:column]) * '_and_'}" since at least 2006 (bc7f2315), and that's how they come out in my DB. Please check that this is correct before merging into master, perhaps I'm misunderstanding the section I changed. | ||||
* | Should clear the primary keys cache also | Jon Leighton | 2011-12-16 | 1 | -0/+1 |
| | |||||
* | Don't store defaults in the schema cache | Jon Leighton | 2011-12-16 | 1 | -3/+2 |
| | |||||
* | Defaults hash can go on the model | Jon Leighton | 2011-12-16 | 1 | -14/+1 |
| | |||||
* | Cache columns at the model level. | Jon Leighton | 2011-12-16 | 1 | -9/+2 |
| | | | | Allows two models to use the same table but have different primary keys. | ||||
* | Revert naive O(1) table_exists? implementation. | Jon Leighton | 2011-12-13 | 3 | -12/+15 |
| | | | | | | | | | | 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. | ||||
* | Use `table_exists?` from the schema cache. | Aaron Patterson | 2011-12-09 | 1 | -4/+2 |
| | |||||
* | don't need a begin / end. | Aaron Patterson | 2011-12-09 | 1 | -6/+4 |
| | |||||
* | squelch table exists? queries. | Aaron Patterson | 2011-12-09 | 1 | -1/+1 |
| | |||||
* | Exceptions should read from the spec configu | Aaron Patterson | 2011-12-08 | 1 | -1/+1 |
| | |||||
* | fix nodocs | Vijay Dev | 2011-12-09 | 1 | -3/+3 |
| | |||||
* | fix comments | Vijay Dev | 2011-12-09 | 1 | -4/+2 |
| | |||||
* | Use a hash to look up column definitions | Aaron Patterson | 2011-12-07 | 1 | -2/+3 |
| | |||||
* | try to normalize the objects passed to column() | Aaron Patterson | 2011-12-07 | 1 | -9/+11 |
| | |||||
* | automatically add the column definition to the columns list if creating a ↵ | Aaron Patterson | 2011-12-07 | 1 | -12/+21 |
| | | | | new one | ||||
* | stop calling String#to_s so frequently | Aaron Patterson | 2011-12-07 | 1 | -3/+4 |
| | |||||
* | the required sqlite3 adapter responds to encoding, so stop checking. | Aaron Patterson | 2011-12-07 | 1 | -5/+1 |
| | |||||
* | Quitoting the table name before querying. | Aaron Patterson | 2011-12-05 | 1 | -1/+1 |
| | |||||
* | Speed up table_exists? for databases with a large number of tables | Jade Rubick | 2011-12-05 | 1 | -1/+6 |
| | | | | | | At New Relic, we have hundreds of thousands of tables, and our migrations took 30 minutes without this similar patch. This cuts it down to a more reasonable amount of time. The rescue false part is ugly, but necessary as far as I can tell. I don't know of a cross-database statement you can make that will work without trapping errors. | ||||
* | SQlite3 Bump | Arun Agrawal | 2011-12-04 | 1 | -1/+1 |
| | |||||
* | Use show create table. | kennyj | 2011-12-03 | 1 | -3/+8 |
| | |||||
* | implements automatic EXPLAIN logging for slow queries | Xavier Noria | 2011-12-02 | 5 | -78/+98 |
| | |||||
* | push synchronization in to each method. Reduces method calls and makes | Aaron Patterson | 2011-11-29 | 1 | -25/+29 |
| | | | | it clear which methods are synchronized. | ||||
* | Automatic closure of connections in threads is deprecated. For example | Aaron Patterson | 2011-11-29 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | | | the following code is deprecated: Thread.new { Post.find(1) }.join It should be changed to close the database connection at the end of the thread: Thread.new { Post.find(1) Post.connection.close }.join Only people who spawn threads in their application code need to worry about this change. | ||||
* | AbstractAdapter#close can be called to add the connection back to the | Aaron Patterson | 2011-11-29 | 2 | -11/+19 |
| | | | | pool. | ||||
* | Start implementing @reserved_connections in terms of connection leases. | Aaron Patterson | 2011-11-29 | 1 | -3/+3 |
| | |||||
* | Rename `checked_out` to more descriptive `active_connections` | Aaron Patterson | 2011-11-29 | 1 | -3/+3 |
| | |||||
* | Use connection lease to determine "checked_out" connections | Aaron Patterson | 2011-11-29 | 1 | -17/+21 |
| | |||||
* | expire will set in_use to false | Aaron Patterson | 2011-11-29 | 1 | -0/+5 |
| | |||||
* | Leased connections return false on second lease | Aaron Patterson | 2011-11-29 | 1 | -2/+4 |
| | |||||
* | Adapters keep in_use flag when leased | Aaron Patterson | 2011-11-29 | 1 | -1/+14 |
| | |||||
* | Deprecate set_primary_key in favour of self.primary_key= | Jon Leighton | 2011-11-29 | 1 | -1/+1 |
| | |||||
* | respond_to? information of AR is not the responsibility of the spec | Aaron Patterson | 2011-11-29 | 1 | -7/+9 |
| | | | | resolver. | ||||
* | remove unused instance variable | Aaron Patterson | 2011-11-28 | 1 | -1/+0 |
| | |||||
* | just check in all connections | Aaron Patterson | 2011-11-28 | 1 | -6/+2 |
| | |||||
* | Move connection resoluion logic to it's own testable class. | Aaron Patterson | 2011-11-28 | 1 | -58/+74 |
| | |||||
* | clean up string => hash conversion for connection pool | Aaron Patterson | 2011-11-28 | 1 | -19/+17 |
| | |||||
* | pools are 1:1 with spec now rather than 1:1 with class | Aaron Patterson | 2011-11-28 | 2 | -4/+8 |
| | |||||
* | break establish_connection to smaller methods | Aaron Patterson | 2011-11-28 | 1 | -30/+40 |
| | |||||
* | Bump Mysql2! | Arun Agrawal | 2011-11-22 | 1 | -1/+1 |
| | |||||
* | oops! I suck! :bomb: | Aaron Patterson | 2011-11-20 | 1 | -1/+0 |
| | |||||
* | removing deprecated methods | Aaron Patterson | 2011-11-19 | 3 | -26/+0 |
| | |||||
* | adding visitors to the respective adapters | Aaron Patterson | 2011-11-19 | 2 | -0/+2 |
| | |||||
* | pushing caching and visitors down to the connection | Aaron Patterson | 2011-11-19 | 4 | -81/+107 |
| | |||||
* | Use `show index from`. We could fix `pk_and_sequence_for` method's ↵ | kennyj | 2011-11-19 | 1 | -18/+2 |
| | | | | performance problem (GH #3678) | ||||
* | Only used detailed schema introspection when doing a schema dump. | Christos Zisopoulos | 2011-11-18 | 1 | -0/+7 |
| | | | Fixes #3678 | ||||
* | Revert "Merge pull request #1163 from amatsuda/sexier_migration_31" | Aaron Patterson | 2011-11-17 | 2 | -18/+10 |
| | | | | | | | | | | 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 | ||||
* | Revert "Merge pull request #3603 from vijaydev/change_table_without_block_arg" | Aaron Patterson | 2011-11-17 | 1 | -12/+7 |
| | | | | | | | | | This reverts commit 81fad6a270ec3cbbb88553c9f2e8200c34fd4d13, reversing changes made to 23101de283de13517e30c4c3d1ecc65525264886. Conflicts: activerecord/test/cases/migration_test.rb | ||||
* | Adding a deprecation warning for use of the schema_info table. | Aaron Patterson | 2011-11-16 | 1 | -0/+2 |
| |