aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract
Commit message (Collapse)AuthorAgeFilesLines
* Removed deprecated method `columns_for_remove`Neeraj Singh2013-07-031-6/+0
|
* Remove deprecated SchemaStatements#distinctFrancesco Rodriguez2013-07-021-9/+0
|
* Remove deprecated AR::Connection#clear_stale_cached_connections! methodFrancesco Rodriguez2013-07-011-5/+0
|
* Fix documents for create_join_tableSatoshi Ebisawa2013-06-211-2/+2
|
* Merge pull request #10425 from ↵Rafael Mendonça França2013-06-132-11/+3
|\ | | | | | | | | ranjaykrishna/push_add_column_options_to_schema_creation Push add column options to schema creation
| * Moving add_column_options! up to SchemaCreationjeran2013-06-122-11/+3
| | | | | | | | | | | | | | | | removed two instances of add_column_options! from abstract_mysql_adapter reworked rename_column_sql to remove add_column_options from schema_statements changed to use new hash syntax.
* | Fixes #10432 add_column not creating array columns in PostgreSQLAdam Anderson2013-06-041-0/+1
| | | | | | | | | | | | When then PostgreSQL visitor was [added](https://github.com/rails/rails/commit/6b7fdf3bf3675a14eae74acc5241089308153a34) `add_column` was no longer receiving the column options directly. This caused the options to be lost along the way.
* | Remove behavior that deals with a string as third argument of `add_index`, ↵kennyj2013-06-021-28/+14
| | | | | | | | | | | | because this was deprecated. Some testcases is failed, so I replaced nil to empty hash in add_reference.
* | Merge pull request #10556 from Empact/deprecate-schema-statements-distinctRafael Mendonça França2013-05-121-1/+2
| | | | | | | | | | | | Deprecate SchemaStatements#distinct, and make SchemaStatements#columns_for_distinct nodoc. Conflicts: activerecord/CHANGELOG.md
* | Merge pull request #10572 from nertzy/dont-modify-options-hash-in-primary-keyRafael Mendonça França2013-05-111-2/+1
| | | | | | | | Don't modify args in TableDefinition#primary_key
* | Fix that #exists? can produce invalid SQL: "SELECT DISTINCT DISTINCT"Ben Woosley2013-05-101-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | The combination of a :uniq => true association and the #distinct call in #construct_limited_ids_condition combine to create invalid SQL, because we're explicitly selecting DISTINCT, and also sending #distinct on to AREL, via the relation#distinct_value. Rather than build a select distinct clause in #construct_limited_ids_condition, I set #distinct! and pass just the columns into the select statement. This requires introducing a #columns_for_distinct method to return the select columns but not the statement itself.
* | Move method used only in the test to the test code itselfIvan Kataitsev2013-04-251-8/+0
| |
* | Make references with index:true pass Hash options to add_index.Victor Costan2013-04-011-1/+1
| |
* | Refactor index algorithm lookup so that it only builds the available options ↵Carlos Antonio da Silva2013-03-301-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 Silva2013-03-301-9/+9
| |
* | Fix code examples indent in new index options docs [ci skip]Carlos Antonio da Silva2013-03-301-3/+3
| |
* | Use new hash style in doc examples [ci skip]Carlos Antonio da Silva2013-03-301-2/+2
|/
* Add support for FULLTEXT and SPATIAL indexes using the :type flag for MySQL.Ken Mazaika2013-03-272-2/+15
|
* Merge pull request #9928 from vipulnsward/fix_rename_auto_increment_mysqlRafael Mendonça França2013-03-261-0/+3
|\ | | | | respect auto_increment in rename_column for mysql
| * respect auto_increment in rename_column for mysqlVipul A M2013-03-271-0/+3
| |
* | Checks :algorithm argument for valid valuesDan McClain2013-03-261-1/+7
| |
* | Adds support for concurrent indexing in PostgreSQL adapterDan McClain2013-03-251-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 fromRafael Mendonça França2013-03-251-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.doabit2013-03-242-3/+10
|
* add uuid primary key supportAaron Patterson2013-03-222-3/+4
|
* separate primary key from column typeAaron Patterson2013-03-221-10/+11
|
* push the mysql add_column up to the abstract adapterAaron Patterson2013-03-221-1/+3
|
* allow multiple add columnsAaron Patterson2013-03-221-4/+4
|
* push alter table add column sql in to the schema modification visitorAaron Patterson2013-03-222-9/+30
|
* there is no reason to check for an already defined columnAaron Patterson2013-03-221-1/+1
|
* push column initialization down to the factory methodAaron Patterson2013-03-221-13/+13
|
* @columns list is no longer necessaryAaron Patterson2013-03-221-8/+4
|
* keep ivars private, do not manipulate them outside their owner objectAaron Patterson2013-03-221-0/+4
|
* factory methods should not alter object stateAaron Patterson2013-03-221-5/+7
|
* push SQL generation inside the schema creation objectAaron Patterson2013-03-222-9/+9
|
* mostly decouple TableDefinition from the database connectionAaron Patterson2013-03-222-4/+4
|
* remove to_sql from TableDefinitionAaron Patterson2013-03-222-9/+1
|
* decouple column definition from the database connectionAaron Patterson2013-03-221-6/+6
|
* remove knowledge of SQL from the column definition objectAaron Patterson2013-03-221-21/+2
|
* use `connect_poll` on pg so that reaping does not hurt the connectionAaron Patterson2013-03-201-1/+3
|
* Revert "default the reaping frequency to 10 seconds"Aaron Patterson2013-03-201-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 M2013-03-192-2/+2
|
* Refactored to reuse methodAnupam Choudhury2013-03-151-2/+2
|
* ask column if it is a pkAaron Patterson2013-03-141-1/+5
|
* clean up pk delclaration in `create_table`Aaron Patterson2013-03-141-1/+8
|
* you can provide uuid_generate_v4 as the default value for uuid columnsAaron Patterson2013-03-141-1/+2
|
* pg is the only adapter that supports the xml type, so push the method downAaron Patterson2013-03-141-9/+0
|
* Apparently people were mutating this array. :'(Aaron Patterson2013-03-141-3/+3
| | | | This reverts commit abba61e2bbe320894ba8449ebdf778a1d2af545b.
* hashes are ordered, so just use the columns_hash ivarAaron Patterson2013-03-141-3/+3
|
* use the method so we do not depend on internal ivarsAaron Patterson2013-03-141-1/+1
|