summaryrefslogtreecommitdiff
path: root/spec/support/migrations_helpers.rb
Commit message (Collapse)AuthorAgeFilesLines
* Clear schema cache after running tests for migrationsGrzegorz Bizon2017-08-281-0/+2
|
* Disable migrations output in migrations helpersGrzegorz Bizon2017-08-171-3/+17
|
* Make it possible to provide schema version in testsGrzegorz Bizon2017-08-161-0/+15
|
* Reset only migration models36052-reset-only-migration-modelsLin Jen-Shin2017-08-071-0/+10
| | | | | | | | | | | | | | | | | 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 ```
* Calculate previous migration version in specs supportGrzegorz Bizon2017-06-051-0/+10
| | | | | | 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.
* Add pipeline stages post deployment migrationGrzegorz Bizon2017-05-261-0/+4
|
* Add migrations helpers to simplify writing migration specsGrzegorz Bizon2017-05-261-0/+15