Commit Graph

4 Commits

Author SHA1 Message Date
Jasper Maes 01185be027 Fix deprecation: insert_sql is deprecated and will be removed 2019-01-02 19:47:50 +01:00
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
Rubén Dávila d32a571acb Fixes a migration that causes error on some legacy DBs
Looks like there are some legacy GitLab databases that have a NOT NULL
constraint for the `created_at` and `updated` fields.

This change fixes the migration by adding a default value to those
columns and I think we always should have it in mind when inserting DB
records through raw SQL.
2018-11-01 18:34:15 -05:00
Rubén Dávila a2071f2b8b Fix missing namespace for some internal users 2018-04-20 17:53:22 -05:00