1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases/migration
Yaw Boakye de387ea482 rename_table renames primary key index name
Formerly, `rename_table` only renamed primary key index name if the
column's data type was sequential (serial, etc in PostgreSQL). The
problem with that is tables whose primary keys had other data types
(e.g. UUID) maintained the old primary key name. So for example,
if the `cats` table has a UUID primary key, and the table is renamed to
`felines`, the primary key index will still be called `cats_pkey`
instead of `felines_pkey`. This PR corrects it.
2017-05-29 09:54:10 +00:00
..
change_schema_test.rb Correctly dump native timestamp types for MySQL 2017-02-23 12:51:49 +09:00
change_table_test.rb Virtual/generated column support for MySQL 5.7.5+ and MariaDB 5.2.0+ 2017-02-01 22:13:46 -07:00
column_attributes_test.rb Merge pull request #26631 from kamipo/remove_duplicate_condition 2016-10-06 02:41:17 +10:30
column_positioning_test.rb modernizes hash syntax in activerecord 2016-08-06 19:37:57 +02:00
columns_test.rb Fix change_column to drop default with null: false 2017-02-26 00:23:04 -07:00
command_recorder_test.rb Remove a redundant test case of command_recorder_test 2017-05-29 00:37:13 +09:00
compatibility_test.rb primary_key and references columns should be identical type 2017-02-07 14:21:18 +09:00
create_join_table_test.rb create_join_table should respect references column type 2017-02-28 16:31:22 +09:00
foreign_key_test.rb Remove unused DdlHelper in ForeignKeyTest 2017-02-14 23:47:48 +09:00
helper.rb normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
index_test.rb Deprecate passing default to index_name_exists? 2017-02-13 12:35:30 +09:00
logger_test.rb applies remaining conventions across the project 2016-08-06 20:20:22 +02:00
pending_migrations_test.rb Deprecate supports_migrations? on connection adapters 2017-02-27 03:14:33 +09:00
references_foreign_key_test.rb Fix remove_reference to multiple foreign keys in the same table 2017-02-11 15:19:53 +09:00
references_index_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
references_statements_test.rb Both reference id and type should be NOT NULL if null: false is specified 2017-05-19 13:28:30 +09:00
rename_table_test.rb rename_table renames primary key index name 2017-05-29 09:54:10 +00:00