Commit Graph

12 Commits (96ddf1d4820419a6b5367af022be5cf17526109e)

Author SHA1 Message Date
Matt Jankowski ae39bed95b
Solve remaining `db/*migrate*` cops (#28579) 1 year ago
Matt Jankowski 271d384fd0
Use migration classes in migrations where current definition conflicts with older (#26390) 1 year ago
Nick Schonning 1d557305d2
Enable Rubocop Style/FrozenStringLiteralComment (#23793) 2 years ago
Matt Jankowski b9e34ef098
Migration warning helper, and only run in production env (#24253) 2 years ago
Nick Schonning 8ef09813a2
Autofix Rubocop Style/EmptyMethod (#23732) 2 years ago
Claire b358229834
Further preparation for Rails 6 (#15916)
* Use ActiveRecord::Result#to_ary instead of deprecated to_hash

They do the same thing, and to_hash has been removed from Rails 6.1

* Explicitly name polymorphic indexes to workaround a bug in Rails 6.1

cf. https://github.com/rails/rails/issues/41693

* Fix incorrect usage of “foreign_key” in migration script

* Use `ActiveModel::Errors#delete` instead of deprecated clear method

* Fix link headers tests on Rails 6.1

Rails 6.1 adds values to the Link header by default, thus it is not a
LinkHeader object anymore. Fix the test to parse the Link header instead
of assuming it is a LinkHeader.
4 years ago
Eugen Rochko 4363d06986
Fix interactive delays in database migrations with no TTY (#12969)
Fix #12587
5 years ago
ThibG f682387aae Fix old migration failing with new status default scope (#12493) 5 years ago
Eugen Rochko ebe574d5b5
Fix old migration trying to use new column due to default status scope (#12095)
Fix #12087
5 years ago
Eugen Rochko f2290e311b
Remove progress estimate from MigrateAccountConversations (#9168) 6 years ago
Eugen Rochko 93a1ab9030
Add progress indicators to MigrateAccountConversations (#9101)
* Add progress indicators to MigrateAccountConversations

* Avoid running expensive query for explain

* Use exec_query instead of execute
6 years ago
Eugen Rochko 4ea718ef18
Migrate all old direct messages to new conversations schema (#9085) 6 years ago