Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Make references with index:true pass Hash options to add_index. | Victor Costan | 2013-04-01 | 1 | -1/+1 | |
| | | ||||||
* | | Refactor index algorithm lookup so that it only builds the available options ↵ | Carlos Antonio da Silva | 2013-03-30 | 1 | -4/+4 | |
| | | | | | | | | | | | | | | | | | | | | | | once This way the available options are only built for actually fetching the algorithm in case the option is given. The options are going to be necessary a second time only in case the option is given but does not exist, which is supposed to be due to a typo or something like that, so no problem. | |||||
* | | Make docs a little bit more consistent with colons [ci skip] | Carlos Antonio da Silva | 2013-03-30 | 1 | -9/+9 | |
| | | ||||||
* | | Fix code examples indent in new index options docs [ci skip] | Carlos Antonio da Silva | 2013-03-30 | 1 | -3/+3 | |
| | | ||||||
* | | Use new hash style in doc examples [ci skip] | Carlos Antonio da Silva | 2013-03-30 | 1 | -2/+2 | |
|/ | ||||||
* | Add support for FULLTEXT and SPATIAL indexes using the :type flag for MySQL. | Ken Mazaika | 2013-03-27 | 2 | -2/+15 | |
| | ||||||
* | Merge pull request #9928 from vipulnsward/fix_rename_auto_increment_mysql | Rafael Mendonça França | 2013-03-26 | 1 | -0/+3 | |
|\ | | | | | respect auto_increment in rename_column for mysql | |||||
| * | respect auto_increment in rename_column for mysql | Vipul A M | 2013-03-27 | 1 | -0/+3 | |
| | | ||||||
* | | Checks :algorithm argument for valid values | Dan McClain | 2013-03-26 | 1 | -1/+7 | |
| | | ||||||
* | | Adds support for concurrent indexing in PostgreSQL adapter | Dan McClain | 2013-03-25 | 1 | -2/+5 | |
|/ | | | | | | | | Adds support for algorithm option in MySQL indexes Moves USING and algorithm options upstream The syntax is still specific to the Adapter, so the actual executed string happens in the corresponding adapter | |||||
* | The sql_type method called here is from | Rafael Mendonça França | 2013-03-25 | 1 | -1/+1 | |
| | | | | | | | ActiveRecord::ConnectionAdapters::Column See https://github.com/rails/rails/blob/28b8ca766e3e7c6c43d3ae900c99f8377153c62/activerecord/lib/active_record/connection_adapters/column.rb#L16 | |||||
* | 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 | |
| |