Commit graph

7 commits

Author SHA1 Message Date
GitLab Bot
127ab291e2 Add latest changes from gitlab-org/gitlab@master 2021-07-02 06:07:28 +00:00
GitLab Bot
a1ed241c82 Add latest changes from gitlab-org/gitlab@master 2021-02-03 21:09:17 +00:00
Nick Thomas
6ddefe7cad
Correctly handle data-loss scenarios when encrypting columns
If the EncryptColumns background migration runs in a sidekiq with a
stale view of the database schema, or when the purported destination
columns don't actually exist, data loss can result. Attempt to work
around these issues by reloading schema information before running
the migration, and raising errors if the model reports that any of its
source or destination columns are missing.
2018-11-27 18:24:18 +00:00
Andre Guedes
5dbf1f4871 Use Module#prepend instead of alias_method_chain 2016-09-30 07:08:25 -03:00
Douwe Maan
61ceb45088 Fix. 2015-05-15 15:32:49 +02:00
Douwe Maan
ba07c9f7f5 Improve fix. 2015-05-15 14:56:04 +02:00
Douwe Maan
b77e1ae6f7 Don't require DB conncetion in AttrEncrypted. 2015-05-15 14:34:22 +02:00