Commit graph

5 commits

Author SHA1 Message Date
Grzegorz Bizon
c76f8f3e8f Make it possible to provide schema version in tests 2017-08-16 13:05:18 +02:00
Lin Jen-Shin
4d7c072da3 Reset only migration models
So that we could make sure migration tests could run even if
geo is not setup in EE.

This is because we have a model like this:

``` ruby
class Geo::BaseRegistry < ActiveRecord::Base
  def self.connection
    raise 'Geo secondary database is not configured' unless Gitlab::Geo.geo_database_configured?

    super
  end
end
```
2017-08-07 21:20:26 +08:00
Grzegorz Bizon
028423c2f5 Calculate previous migration version in specs support
This makes it possible to test migration on the schema this migration
was written for, without a need to specify a previous schema version
manually.
2017-06-05 11:07:10 +02:00
Grzegorz Bizon
918ababba6 Add pipeline stages post deployment migration 2017-05-26 14:46:45 +02:00
Grzegorz Bizon
0f9fbae78a Add migrations helpers to simplify writing migration specs 2017-05-26 10:36:01 +02:00