Commit Graph

3 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
Z.J. van de Weg d922f54548 Remove rails dependent: :destroy statement
Enforced by the database, and no callbacks need to be called.

Combined with 7b9b2c6099 and 294a8b8a6d this resolves
gitlab-org/gitlab-ce#31799
2017-05-11 14:52:47 +02:00
Z.J. van de Weg 3eb8435fec Add a foreign key to ci_variables to projects
Variables shouldn't exist without a project, so a foreign key was added
with CASCADE'ing effects.
2017-05-11 14:52:47 +02:00