Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Custom index type support with :using. | doabit | 2013-03-24 | 2 | -3/+10 |
| | |||||
* | add uuid primary key support | Aaron Patterson | 2013-03-22 | 2 | -3/+4 |
| | |||||
* | separate primary key from column type | Aaron Patterson | 2013-03-22 | 1 | -10/+11 |
| | |||||
* | push the mysql add_column up to the abstract adapter | Aaron Patterson | 2013-03-22 | 1 | -1/+3 |
| | |||||
* | allow multiple add columns | Aaron Patterson | 2013-03-22 | 1 | -4/+4 |
| | |||||
* | push alter table add column sql in to the schema modification visitor | Aaron Patterson | 2013-03-22 | 2 | -9/+30 |
| | |||||
* | there is no reason to check for an already defined column | Aaron Patterson | 2013-03-22 | 1 | -1/+1 |
| | |||||
* | push column initialization down to the factory method | Aaron Patterson | 2013-03-22 | 1 | -13/+13 |
| | |||||
* | @columns list is no longer necessary | Aaron Patterson | 2013-03-22 | 1 | -8/+4 |
| | |||||
* | keep ivars private, do not manipulate them outside their owner object | Aaron Patterson | 2013-03-22 | 1 | -0/+4 |
| | |||||
* | factory methods should not alter object state | Aaron Patterson | 2013-03-22 | 1 | -5/+7 |
| | |||||
* | push SQL generation inside the schema creation object | Aaron Patterson | 2013-03-22 | 2 | -9/+9 |
| | |||||
* | mostly decouple TableDefinition from the database connection | Aaron Patterson | 2013-03-22 | 2 | -4/+4 |
| | |||||
* | remove to_sql from TableDefinition | Aaron Patterson | 2013-03-22 | 2 | -9/+1 |
| | |||||
* | decouple column definition from the database connection | Aaron Patterson | 2013-03-22 | 1 | -6/+6 |
| | |||||
* | remove knowledge of SQL from the column definition object | Aaron Patterson | 2013-03-22 | 1 | -21/+2 |
| | |||||
* | use `connect_poll` on pg so that reaping does not hurt the connection | Aaron Patterson | 2013-03-20 | 1 | -1/+3 |
| | |||||
* | Revert "default the reaping frequency to 10 seconds" | Aaron Patterson | 2013-03-20 | 1 | -1/+1 |
| | | | | | | | mysql can't handle a parallel thread pinging the connection, so we can get wrong results or segvs This reverts commit 7cc588b684f6d1af3e7fab1edfa6715e269e41a2. | ||||
* | fix typos in AR. lots of them. | Vipul A M | 2013-03-19 | 2 | -2/+2 |
| | |||||
* | Refactored to reuse method | Anupam Choudhury | 2013-03-15 | 1 | -2/+2 |
| | |||||
* | ask column if it is a pk | Aaron Patterson | 2013-03-14 | 1 | -1/+5 |
| | |||||
* | clean up pk delclaration in `create_table` | Aaron Patterson | 2013-03-14 | 1 | -1/+8 |
| | |||||
* | you can provide uuid_generate_v4 as the default value for uuid columns | Aaron Patterson | 2013-03-14 | 1 | -1/+2 |
| | |||||
* | pg is the only adapter that supports the xml type, so push the method down | Aaron Patterson | 2013-03-14 | 1 | -9/+0 |
| | |||||
* | Apparently people were mutating this array. :'( | Aaron Patterson | 2013-03-14 | 1 | -3/+3 |
| | | | | This reverts commit abba61e2bbe320894ba8449ebdf778a1d2af545b. | ||||
* | hashes are ordered, so just use the columns_hash ivar | Aaron Patterson | 2013-03-14 | 1 | -3/+3 |
| | |||||
* | use the method so we do not depend on internal ivars | Aaron Patterson | 2013-03-14 | 1 | -1/+1 |
| | |||||
* | extract factory method and push common code up to abstract adapter | Aaron Patterson | 2013-03-14 | 1 | -2/+5 |
| | |||||
* | Fix typo [ci skip] | Carlos Antonio da Silva | 2013-03-11 | 1 | -1/+1 |
| | |||||
* | promotes change_column_null to the migrations API | Xavier Noria | 2013-03-11 | 1 | -0/+20 |
| | |||||
* | quick pass over the RDoc of schema_statements.rb [ci skip] | Xavier Noria | 2013-03-11 | 1 | -122/+190 |
| | |||||
* | documents how to DROP DEFAULT [ci skip] | Xavier Noria | 2013-03-11 | 1 | -3/+7 |
| | |||||
* | default the reaping frequency to 10 seconds | Aaron Patterson | 2013-03-11 | 1 | -1/+1 |
| | |||||
* | Make sure options is a hash | Rafael Mendonça França | 2013-03-08 | 1 | -1/+3 |
| | |||||
* | If an index can't be found by column, use the index name. | Ezekiel Smithburg | 2013-03-07 | 1 | -0/+6 |
| | | | | schema_statements uses the column name by default to construct the index name, and then raises an exception if it doesn't exist, even if the name option is specified, which causes #8858. this commit makes index_name_for_remove fall back to constructing the index name to remove based on the name option. | ||||
* | SQLite3 3.6.8+ supports savepoints | Neeraj Singh | 2013-03-07 | 1 | -1/+2 |
| | | | | | http://www.sqlite.org/lang_savepoint.html https://github.com/rails/rails/blob/master/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L130-L132 | ||||
* | `Connection#structure_dump` is no longer used. #9518 | Yves Senn | 2013-03-06 | 1 | -5/+0 |
| | | | | | | | As of ccc6910c we use `mysqldump` to create the `structure.sql`. The old `#structure_dump` code is still in AR but never used. I removed all relevant parts from the code-base. | ||||
* | Support PostgreSQL specific column types when using `change_table`. | Yves Senn | 2013-02-28 | 1 | -4/+8 |
| | | | | | | | | Closes #9480. We use `TableDefinition` for `#create_table` and `Table` for `#change_table`. The PostgreSQL sepcifc types were only defined on `TableDefinition` so I also added them to `Table`. | ||||
* | update docs, change_table does not use TableDefinition. | Yves Senn | 2013-02-28 | 1 | -3/+3 |
| | |||||
* | Revert "Merge pull request #9207 from dylanahsmith/mysql-quote-numeric" | Steve Klabnik | 2013-02-27 | 1 | -8/+2 |
| | | | | | This reverts commit 408227d9c5ed7de26310d72a1a99c1ee02311c63, reversing changes made to dca0b57d03deffc933763482e615c3cf0b9a1d97. | ||||
* | Fix default output for postgres network address types | Erik Peterson | 2013-02-26 | 1 | -0/+11 |
| | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2013-02-26 | 1 | -1/+1 |
|\ | |||||
| * | Typo fix | Carson McDonald | 2013-02-25 | 1 | -1/+1 |
| | | |||||
* | | Indent comment block by two spaces. | Marc Schütz | 2013-02-21 | 1 | -4/+4 |
| | | | | | | | | | | As requested by @fxn https://github.com/schuetzm/rails/commit/743d15bba182df80d003d205690ead988970299c#commitcomment-2661417 | ||||
* | | Add more documentation for create_join_table. | Marc Schütz | 2013-02-20 | 1 | -0/+8 |
| | | | | | | | | | | Explain that it doesn't create indices by default and that it also has a block form. | ||||
* | | also rename indexes when a table or column is renamed | Yves Senn | 2013-02-20 | 1 | -0/+22 |
| | | | | | | | | When a table or a column is renamed related indexes kept their name. This will lead to confusing names. This patch renames related indexes when a column or a table is renamed. Only indexes with names generated by rails will be renamed. Indexes with custom names will not be renamed. | ||||
* | | reserve index name chars for internal rails operations | Yves Senn | 2013-02-20 | 2 | -3/+14 |
| | | | | | | | | | | | | | | | | | | | | | | Some adapter (SQLite3) need to perform renaming operations to support the rails DDL. These rename prefixes operate with prefixes. When an index name already uses up the full space provieded by `index_name_length` these internal operations will fail. This patch introduces `allowed_index_name_length` which respects the amount of characters used for internal operations. It will always be <= `index_name_length` and every adapter can define how many characters need to be reserved. | ||||
* | | Reduced memory leak problem in transactions by lazily updating AR objects ↵ | wangjohn | 2013-02-20 | 1 | -3/+10 |
| | | | | | | | | with new transaction state. If AR object has a callback, the callback will be performed immediately (non-lazily) so the transaction still has to keep records with callbacks. | ||||
* | | Gist URLs are now namespaced | Akira Matsuda | 2013-02-18 | 1 | -4/+4 |
|/ | | | | see: https://github.com/blog/1406-namespaced-gists | ||||
* | Revert "Revert "Merge pull request #9206 from ranjaykrishna/use_define_method"" | Jon Leighton | 2013-02-15 | 1 | -18/+13 |
| | | | | | | This reverts commit 8aa4603a5adaa56c818a7bd1c0b761b4ecca3d3e. Reverting the revert because I reverted the wrong thing! Fail. |