Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
ff61e2b7
Commit
ff61e2b7
authored
May 26, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorder pipeline stages-related migrations
parent
23c93490
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
8 deletions
+10
-8
db/post_migrate/20170526185842_migrate_pipeline_stages.rb
db/post_migrate/20170526185842_migrate_pipeline_stages.rb
+0
-0
db/post_migrate/20170526190948_create_index_in_pipeline_stages.rb
...migrate/20170526190948_create_index_in_pipeline_stages.rb
+0
-0
db/schema.rb
db/schema.rb
+1
-1
spec/migrations/migrate_pipeline_stages_spec.rb
spec/migrations/migrate_pipeline_stages_spec.rb
+2
-2
spec/spec_helper.rb
spec/spec_helper.rb
+7
-5
No files found.
db/post_migrate/201705261
010
42_migrate_pipeline_stages.rb
→
db/post_migrate/201705261
858
42_migrate_pipeline_stages.rb
View file @
ff61e2b7
File moved
db/post_migrate/201705261
80645
_create_index_in_pipeline_stages.rb
→
db/post_migrate/201705261
90948
_create_index_in_pipeline_stages.rb
View file @
ff61e2b7
File moved
db/schema.rb
View file @
ff61e2b7
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
20170526190
70
8
)
do
ActiveRecord
::
Schema
.
define
(
version:
20170526190
94
8
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
spec/migrations/migrate_pipeline_stages_spec.rb
View file @
ff61e2b7
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'201705261
010
42_migrate_pipeline_stages.rb'
)
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'201705261
858
42_migrate_pipeline_stages.rb'
)
describe
MigratePipelineStages
,
:migration
,
schema:
2017052
51322
02
do
describe
MigratePipelineStages
,
:migration
,
schema:
2017052
61856
02
do
##
# Create test data - pipeline and CI/CD jobs.
#
...
...
spec/spec_helper.rb
View file @
ff61e2b7
...
...
@@ -95,12 +95,14 @@ RSpec.configure do |config|
end
config
.
around
(
:example
,
migration:
true
)
do
|
example
|
schema_version
=
example
.
metadata
.
fetch
(
:schema
)
ActiveRecord
::
Migrator
.
migrate
(
migrations_paths
,
schema_version
)
begin
schema_version
=
example
.
metadata
.
fetch
(
:schema
)
ActiveRecord
::
Migrator
.
migrate
(
migrations_paths
,
schema_version
)
example
.
run
ActiveRecord
::
Migrator
.
migrate
(
migrations_paths
)
example
.
run
ensure
ActiveRecord
::
Migrator
.
migrate
(
migrations_paths
)
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment