Commit Graph

4 Commits

Author SHA1 Message Date
Jan Provaznik 0fc9f9d3e7 Add version 4.2 to all existing migrations
DB schema generated by a migration may look different in
rails 4 and 5 (because rails 5 may use different default values).
For this reason it's important to explicitly set for which rails
version a migration was written for.

See https://stackoverflow.com/questions/35929869/activerecordmigration-deprecation-warning-asks-for-rails-version-but-im-no/35930912#35930912
2018-11-22 13:18:28 +01:00
Yorick Peterse 63bd49696d
Remove more orphans when removing stray namespaces
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/25146
2017-01-11 09:59:33 -05:00
Yorick Peterse 5586ff5784
Handle orphans when removing soft deleted groups
There may be more tables but these were the tables that were problematic
for GitLab.com due to foreign key constraints (without cascading
deletes).
2016-11-22 14:56:13 +01:00
Timothy Andrew bf28506f67 Add a migration to remove soft-deleted groups.
The database should not have any soft-deleted groups. Due to a race
condition (soft-delete completes after the hard-delete), soft-deleted
groups were (incorrectly) left in the database, causing issues while
trying to create a new group with the same name.
2016-11-18 14:27:13 +05:30