Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add nodoc to internal class [ci skip] | Rafael Mendonça França | 2014-06-26 | 1 | -1/+1 | |
| | ||||||
* | fk: use random digest names | Yves Senn | 2014-06-26 | 1 | -1/+10 | |
| | | | | | | The name of the foreign key is not relevant from a users perspective. Using random names resolves the urge to rename the foreign key when the respective table or column is renamed. | |||||
* | fk: support for on_update | Yves Senn | 2014-06-26 | 1 | -0/+4 | |
| | ||||||
* | fk: rename `dependent` to `on_delete` | Yves Senn | 2014-06-26 | 1 | -2/+2 | |
| | ||||||
* | fk: support dependent option (:delete, :nullify and :restrict). | Yves Senn | 2014-06-26 | 1 | -0/+4 | |
| | ||||||
* | fk: generalize using `AlterTable` and `SchemaCreation`. | Yves Senn | 2014-06-26 | 1 | -0/+12 | |
| | ||||||
* | fk: `foreign_keys`, `add_foreign_key` and `remove_foreign_key` for MySQL | Yves Senn | 2014-06-26 | 1 | -0/+14 | |
| | ||||||
* | Change wording of explanation about precision & scale of decimal numbers [ci ↵ | Prathamesh Sonpatki | 2014-06-04 | 1 | -2/+2 | |
| | | | | skip] | |||||
* | Remove :timestamp column type | Sean Griffin | 2014-05-19 | 1 | -0/+7 | |
| | | | | | | | | | | | | The `:timestamp` type for columns is unused. All database adapters treat them as the same database type. All code in `ActiveRecord` which changes its behavior based on the column's type acts the same in both cases. However, when the type is passed to code that checks for the `:datetime` type, but not `:timestamp` (such as XML serialization), the result is unexpected behavior. Existing schema definitions will continue to work, and the `timestamp` type is transparently aliased to `datetime`. | |||||
* | Make `:index` in migrations work with all column types | Marc Schütz | 2014-05-18 | 1 | -6/+13 | |
| | ||||||
* | Remove dead test code for unsupported adapters | Sean Griffin | 2014-05-17 | 1 | -9/+0 | |
| | ||||||
* | fix bug on non empty defaults for pg array columns | Luke Steensen | 2014-03-30 | 1 | -1/+1 | |
| | | | | fixes #10613 | |||||
* | support creating temporary tables from queries | Cody Cutrer | 2013-12-14 | 1 | -2/+3 | |
| | | | | | also override drop_table in AbstractMySQLAdapter to properly drop temporary tables without committing the transaction | |||||
* | Remove redundant `string_to_binary` from type-casting | Vipul A M | 2013-08-09 | 1 | -3/+0 | |
| | ||||||
* | Merge pull request #10425 from ↵ | Rafael Mendonça França | 2013-06-13 | 1 | -0/+3 | |
|\ | | | | | | | | | ranjaykrishna/push_add_column_options_to_schema_creation Push add column options to schema creation | |||||
| * | Moving add_column_options! up to SchemaCreation | jeran | 2013-06-12 | 1 | -0/+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 PostgreSQL | Adam Anderson | 2013-06-04 | 1 | -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. | |||||
* | | Merge pull request #10572 from nertzy/dont-modify-options-hash-in-primary-key | Rafael Mendonça França | 2013-05-11 | 1 | -2/+1 | |
| | | | | | | | | Don't modify args in TableDefinition#primary_key | |||||
* | | Make references with index:true pass Hash options to add_index. | Victor Costan | 2013-04-01 | 1 | -1/+1 | |
|/ | ||||||
* | Add support for FULLTEXT and SPATIAL indexes using the :type flag for MySQL. | Ken Mazaika | 2013-03-27 | 1 | -1/+1 | |
| | ||||||
* | Custom index type support with :using. | doabit | 2013-03-24 | 1 | -1/+1 | |
| | ||||||
* | add uuid primary key support | Aaron Patterson | 2013-03-22 | 1 | -2/+3 | |
| | ||||||
* | 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 | 1 | -6/+23 | |
| | ||||||
* | 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 | 1 | -1/+5 | |
| | ||||||
* | mostly decouple TableDefinition from the database connection | Aaron Patterson | 2013-03-22 | 1 | -3/+3 | |
| | ||||||
* | remove to_sql from TableDefinition | Aaron Patterson | 2013-03-22 | 1 | -8/+0 | |
| | ||||||
* | 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 | |
| | ||||||
* | 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 | |
| | ||||||
* | 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 | |
| | ||||||
* | update docs, change_table does not use TableDefinition. | Yves Senn | 2013-02-28 | 1 | -3/+3 | |
| | ||||||
* | 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. | |||||
* | Revert "Merge pull request #9206 from ranjaykrishna/use_define_method" | Jon Leighton | 2013-02-15 | 1 | -13/+18 | |
| | | | | | | | | | | | | | This reverts commit 1fc6876b57f2e1d31731e74eb4271b5655e746d2, reversing changes made to 0268b5d8cdc3c5a1337462135f0a326a2654ba1a. Reason: failing test 1) Error: test_valid_column(ActiveRecord::ConnectionAdapters::SQLite3AdapterTest): NoMethodError: undefined method `column' for test/cases/adapters/sqlite3/sqlite3_adapter_test.rb:29:in `test_valid_column' | |||||
* | reverted back our changes and added in the new define_method | Ranjay Krishna | 2013-02-12 | 1 | -18/+13 | |
| | ||||||
* | Differentiate between remove_column and remove_columns. Make remove_column ↵ | Marc-Andre Lafortune | 2012-12-21 | 1 | -1/+1 | |
| | | | | | | reversible. [#8267] | |||||
* | Simplify change_table and avoid duplicated logic | Marc-Andre Lafortune | 2012-12-21 | 1 | -14/+2 | |
| |