1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

9 commits

Author SHA1 Message Date
Rafael Mendonça França
249f71a22a
Raises when ActiveRecord::Migration is inherited directly. 2016-12-29 17:53:04 -05:00
Xavier Noria
d22e522179 modernizes hash syntax in activerecord 2016-08-06 19:37:57 +02:00
Xavier Noria
9617db2078 applies new string literal convention in activerecord/test
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
2016-08-06 18:26:53 +02:00
Prathamesh Sonpatki
33b0dbe407 Fix random failures of tests on Travis
- Tests on Travis are randomly failing because schema_migrations table
  does not exist in teardown block.
- Also checked that all other places where we have used
  `ActiveRecord::SchemaMigration.delete_all` we have rescued it, so used
  it here also. This failure was not specifically related to the test
  added in this PR but to overall compatibility migration tests, so
  adding as separate commit.
2016-02-12 19:46:03 +05:30
Prathamesh Sonpatki
5d643d365e Correctly show deprecation warning for incompatible migrations 2016-02-12 13:45:41 +05:30
Prathamesh Sonpatki
6e2302ee59 Added test for backward compatibility of null constraints on timestamp columns 2016-01-31 15:02:46 +05:30
Prathamesh Sonpatki
909818b93b Pare back default index option for the migration generator
- Using `references` or `belongs_to` in migrations will always add index
  for the referenced column by default, without adding `index:true` option
  to generated migration file.
- Users can opt out of this by passing `index: false`.
- Legacy migrations won't be affected by this change. They will continue
  to run as they were before.
- Fixes #18146
2016-01-24 18:48:15 +05:30
Lachlan Sylvester
76dc41abdb fix remove_index for postgresql when running legacy migrations 2016-01-06 19:20:11 +11:00
Grey Baker
8ceb883b06 Support removing custom-names indexes when only specifying column names 2015-12-15 21:06:07 +00:00