Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | 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 | 1 | -1/+14 | |
| | ||||||
* | 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 | |||||
* | Custom index type support with :using. | doabit | 2013-03-24 | 1 | -2/+9 | |
| | ||||||
* | add uuid primary key support | Aaron Patterson | 2013-03-22 | 1 | -1/+1 | |
| | ||||||
* | push alter table add column sql in to the schema modification visitor | Aaron Patterson | 2013-03-22 | 1 | -3/+7 | |
| | ||||||
* | push SQL generation inside the schema creation object | Aaron Patterson | 2013-03-22 | 1 | -8/+4 | |
| | ||||||
* | mostly decouple TableDefinition from the database connection | Aaron Patterson | 2013-03-22 | 1 | -1/+1 | |
| | ||||||
* | remove to_sql from TableDefinition | Aaron Patterson | 2013-03-22 | 1 | -1/+1 | |
| | ||||||
* | clean up pk delclaration in `create_table` | Aaron Patterson | 2013-03-14 | 1 | -1/+8 | |
| | ||||||
* | 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 | |
| | ||||||
* | 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. | |||||
* | `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`. | |||||
* | 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 | 1 | -3/+5 | |
| | | | | | | | | | | | 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. | |||||
* | Fix calling quote column name in interpolated string | Carlos Antonio da Silva | 2012-12-21 | 1 | -1/+1 | |
| | ||||||
* | Differentiate between remove_column and remove_columns. Make remove_column ↵ | Marc-Andre Lafortune | 2012-12-21 | 1 | -6/+19 | |
| | | | | | | reversible. [#8267] | |||||
* | Make drop_table reversible [#8267] | Marc-Andre Lafortune | 2012-12-21 | 1 | -0/+4 | |
| | ||||||
* | Add drop_join_table [#8267] | Marc-Andre Lafortune | 2012-12-21 | 1 | -0/+11 | |
| | ||||||
* | Move to the schema-migrations-metadata branch. | Jeremy Kemper | 2012-12-09 | 1 | -4/+4 | |
| | | | | | | | | | | | | | | | | | | | | | | | | Pending work on graceful app upgrades. Revert "Merge pull request #8439 from joshsusser/fixes" This reverts commit ce8ac39338f86388e70356b3a470b3ea443802ae, reversing changes made to b0e7b6f67c984d4b1502e801781ed75fad681633. Revert "Merge pull request #8431 from joshsusser/schemadump" This reverts commit 036d3e1c2b65c4b8cbd23de2e20ad67b9b756182, reversing changes made to 0c692f4d121792117b6a71e5ed590a31c3b9d12e. Revert "Merge branch 'joshsusser-master' into merge" This reverts commit 0c692f4d121792117b6a71e5ed590a31c3b9d12e, reversing changes made to 2e299fca715b083a60222a85e48f9d3b8dd8ce93. Conflicts: activerecord/CHANGELOG.md activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb activerecord/test/cases/schema_dumper_test.rb | |||||
* | Use CURRENT_TIMESTAMP since it has apparently better cross db support | Carlos Antonio da Silva | 2012-12-06 | 1 | -1/+1 | |
| | | | | | LOCALTIMESTAMP is not support by sqlite3, and travis was giving us these errors: https://travis-ci.org/rails/rails/jobs/3535241/#L570 | |||||
* | Add migration history to schema.rb dump | Josh Susser | 2012-12-02 | 1 | -2/+2 | |
| | ||||||
* | Add metadata to schema_migrations | Josh Susser | 2012-12-01 | 1 | -3/+3 | |
| | | | | | migrated_at: timestamp when migration run fingerprint: md5 hash of migration source name: filename without version or extension | |||||
* | Typo | Chris Patuzzo | 2012-11-21 | 1 | -1/+1 | |
| | ||||||
* | Check if the options value is present before to send the deprecation | Rafael Mendonça França | 2012-11-03 | 1 | -4/+6 | |
| | | | | message | |||||
* | Remove old comment | Rafael Mendonça França | 2012-11-02 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | This comment is not valid since that `if` is there to make possible to do: remove_index :users, :name Instead of: remove_index :users, column: :name What is a valid use case. [ci skip] | |||||
* | Deprecate passing a string as third argument of `add_index` | Rafael Mendonça França | 2012-11-02 | 1 | -0/+6 | |
| | | | | | | | This was there due historical reasons since 7dc45818dc43c163700efc9896a0f3feafa31138 to give the user the possibility to create unique indexes passing "UNIQUE" as the third argument | |||||
* | Raise an ArgumentError when passing an invalid option to add_index | Rafael Mendonça França | 2012-11-02 | 1 | -1/+4 | |
| | | | | Closes #8104 | |||||
* | Migration of docs to 1.9 hash syntax | AvnerCohen | 2012-10-23 | 1 | -24/+24 | |
| | ||||||
* | load active_support/deprecation in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 | |
| | ||||||
* | Deprecate Relation#all. | Jon Leighton | 2012-07-27 | 1 | -1/+1 | |
| | | | | | | It has been moved to active_record_deprecated_finders. Use #to_a instead. | |||||
* | Add fkey attributes to `join_table` migration generator | Aleksey Magusev | 2012-07-19 | 1 | -3/+3 | |
| | ||||||
* | Add join table migration generator | Aleksey Magusev | 2012-07-18 | 1 | -2/+5 | |
| | | | | | | | | | | | | | For instance, running rails g migration CreateMediaJoinTable artists musics:uniq will create a migration with create_join_table :artists, :musics do |t| # t.index [:artist_id, :music_id] t.index [:music_id, :artist_id], unique: true end | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-07-07 | 1 | -2/+4 | |
|\ | ||||||
| * | fix AR::SchemaStatements#column_exists? example [ci skip] | Francesco Rodriguez | 2012-06-30 | 1 | -1/+1 | |
| | | ||||||
| * | update AR::SchemaStatements#column_exists? documentation [ci skip] | Francesco Rodriguez | 2012-06-30 | 1 | -2/+4 | |
| | | ||||||
* | | Don't need to use delete in the options hash | Rafael Mendonça França | 2012-07-03 | 1 | -2/+1 | |
| | | ||||||
* | | Add references schema statements | Aleksey Magusev | 2012-07-03 | 1 | -0/+37 | |
| | | | | | | | | | | | | | | | | | | | | Examples: add_reference :products, :supplier, polymorphic: true, index: true remove_reference :products, :user `add_belongs_to` and `remove_belongs_to` are acceptable. | |||||
* | | Add more options to column_exists? method | Aleksey Magusev | 2012-06-30 | 1 | -4/+6 | |
|/ | | | | Also fix failures in check options for nil |