Commit Graph

4 Commits

Author SHA1 Message Date
Mayra Cabrera 4706352416 Adds cop to enforce string limits on migrations
This cop will analyze migrations that add columns with string, and
report an offense if the string has no limit enforced

Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/64505
2019-08-23 21:36:12 +00:00
Stan Hu c25ef8ee4a Remove PostgreSQL opclasses monkey patch
This is no longer needed with Rails 5.2. opclass is the attribute used
per https://github.com/rails/rails/pull/19090/files.

Now that we've removed the monkey patch and restored the Rails schema
dumper, it appears Rails has dropped the inclusion of `using: :btree` as
well (https://github.com/rails/rails/pull/27981).

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64529
2019-07-23 07:13:32 -07:00
Nick Thomas 2f66a7bb81
Bring the InitSchema migration up to standard 2019-07-02 09:35:03 +01:00
Nick Thomas cfe31f992a
Squash old migrations
Use the `squasher` gem to squash migrations older than the start of 2018
2019-07-02 09:35:03 +01:00