Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | |
| | ||||||
* | Join method uses empty string by default, so remove it | Aaron Patterson | 2011-11-16 | 1 | -2/+2 | |
| | ||||||
* | Fix pull request #3609 | Noé Froidevaux | 2011-11-13 | 1 | -1/+1 | |
| | ||||||
* | Prevent multiple SHOW TABLES calls when a table don't exists in database. | Noé Froidevaux | 2011-11-11 | 1 | -3/+3 | |
| | ||||||
* | Modify change_table to remove the need for the block argument. | Vijay Dev | 2011-11-11 | 1 | -7/+12 | |
| | ||||||
* | Checking the arity of the block passed to create_table | Vijay Dev | 2011-11-10 | 1 | -1/+7 | |
| | | | | | | 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. | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2011-11-08 | 1 | -3/+2 | |
|\ | | | | | | | | | Conflicts: railties/guides/source/active_record_querying.textile | |||||
| * | self.up, self.down => up, down | Akira Matsuda | 2011-11-07 | 1 | -3/+2 | |
| | | ||||||
* | | adds trailing +s to the output of EXPLAIN for MySQL | Xavier Noria | 2011-11-07 | 1 | -3/+2 | |
| | | ||||||
* | | Merge pull request #3521 from ↵ | Aaron Patterson | 2011-11-06 | 1 | -2/+1 | |
|/ | | | | | | nulogy/fix_postgres_adapter_to_handle_spaces_between_schemas Fix postgres adapter to handle spaces between schemas | |||||
* | implements AR::Relation#explain | Xavier Noria | 2011-11-05 | 3 | -1/+137 | |
| | | | | | | | | | | | | | | | | | | | 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. | |||||
* | Merge pull request #3525 from kennyj/fix_3440-1 | Jon Leighton | 2011-11-05 | 1 | -2/+11 | |
|\ | | | | | Fixed an issue id false option is ignored on mysql/mysql2 (fix #3440) | |||||
| * | Fixed an issue id false option is ignored on mysql/mysql2 (fix #3440) | kennyj | 2011-11-06 | 1 | -2/+11 | |
| | | ||||||
* | | AR changes to support creating ordered (asc, desc) indexes | Vlad Jebelev | 2011-11-04 | 6 | -14/+79 | |
|/ | ||||||
* | Merge pull request #1163 from amatsuda/sexier_migration_31 | Aaron Patterson | 2011-11-04 | 2 | -10/+12 | |
|\ | | | | | Sexier migrations | |||||
| * | No "t." for the migration DSL! | Akira Matsuda | 2011-05-20 | 2 | -10/+12 | |
| | | | | | | | | | | 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. | |||||
* | | dump_schema_information: explicitly order inserts into schema_migrations table | Laust Rud Jacobsen | 2011-10-31 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | 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. | |||||
* | | clear statement cache when tables are altered | Aaron Patterson | 2011-10-27 | 1 | -0/+6 | |
| | | ||||||
* | | preserve decimal column attributes after migration | Greg Reinacker | 2011-10-21 | 1 | -0/+3 | |
| | | ||||||
* | | Merge pull request #3258 from ileitch/3-1-stable | Aaron Patterson | 2011-10-20 | 1 | -1/+7 | |
| | | | | | | | | Postgres: Do not attempt to deallocate a statement if the connection is no longer active. | |||||
* | | reset prepared statement when schema changes imapact statement results. ↵ | Aaron Patterson | 2011-10-18 | 1 | -11/+43 | |
| | | | | | | | | fixes #3335 | |||||
* | | Default timestamps to non-null | Mike Perham | 2011-10-14 | 2 | -3/+3 | |
| | | ||||||
* | | Only use LOWER for mysql case insensitive uniqueness check when column has a ↵ | Joseph Palermo | 2011-10-09 | 4 | -8/+31 | |
| | | | | | | | | case sensitive collation. | |||||
* | | use thread locals and an instance variable within QueryCache#BodyProxy to ↵ | Mark J. Titorenko | 2011-10-07 | 2 | -1/+9 | |
| | | | | | | | | maintain appropriate linkage with AR database connection across threads | |||||
* | | Use the schema_search_path in prepared statements. | Juan M. Cuello | 2011-10-05 | 1 | -3/+4 | |
| | | | | | | | | | | To allow the use of prepared statements when changing schemas in postgres, the schema search path is added to the sql key. | |||||
* | | LRU cache in mysql and sqlite are now per-process caches. | Aaron Patterson | 2011-09-07 | 2 | -21/+30 | |
| | | ||||||
* | | LRU should cache per process in postgresql. fixes #1339 | Aaron Patterson | 2011-09-07 | 1 | -10/+14 | |
| | | ||||||
* | | fixing view queries | Aaron Patterson | 2011-09-07 | 1 | -3/+5 | |
| | | ||||||
* | | use the supplied bind values | Aaron Patterson | 2011-09-07 | 1 | -1/+1 | |
| | | ||||||
* | | Merge commit 'refs/pull/2909/head' of https://github.com/rails/rails into rawr | Aaron Patterson | 2011-09-07 | 1 | -6/+4 | |
| | | | | | | | | | | | | * https://github.com/rails/rails: Postgresql adapter: added current_schema check for table_exists? Postgresql adapter: added current_schema check for table_exists? | |||||
* | | Merge pull request #2897 from rsutphin/ar31-remove_connection | Aaron Patterson | 2011-09-06 | 2 | -2/+2 | |
| | | | | | | | | Patch for issue #2820 | |||||
* | | Database adapters use a statement pool. | Aaron Patterson | 2011-09-06 | 3 | -8/+46 | |
| | | | | | | | | | | | | Database adapters use a statement pool for limiting the number of open prepared statments on the database. The limit defaults to 1000, but can be adjusted in your database config by changing 'statement_limit'. | |||||
* | | adding a statement pool for mysql and sqlite3 | Aaron Patterson | 2011-09-06 | 3 | -9/+102 | |
| | | ||||||
* | | Make the logic easier to read | Jon Leighton | 2011-09-06 | 1 | -4/+7 | |
| | | ||||||
* | | * Psych errors with poor yaml formatting are proxied. Fixes #2645, #2731 | Aaron Patterson | 2011-09-01 | 1 | -1/+0 | |
| | | ||||||
* | | make sure encoding_aware? is available | Aaron Patterson | 2011-09-01 | 1 | -0/+2 | |
| | | ||||||
* | | Merge pull request #2021 from dasch/more_postgres_utils | Aaron Patterson | 2011-08-29 | 1 | -1/+3 | |
|\ \ | | | | | | | Make #extract_schema_and_table an instance method in Utils | |||||
| * | | Make #extract_schema_and_table an instance method in Utils | Daniel Schierbeck | 2011-07-09 | 1 | -1/+3 | |
| | | | | | | | | | | | | Also, move the utils test into its own test case. | |||||
* | | | Move the bulk alter table code into the abstract mysql adapter, hence it is ↵ | Jon Leighton | 2011-08-29 | 2 | -47/+42 | |
| | | | | | | | | | | | | supported for mysql2 as well now. | |||||
* | | | Extract simplified_type into the abstract class | Jon Leighton | 2011-08-29 | 3 | -23/+24 | |
| | | |