BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
3a29646d
Commit
3a29646d
authored
Aug 17, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable migrations output in migrations helpers
parent
56d24bcf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
migrations_helpers.rb
spec/support/migrations_helpers.rb
+17
-3
No files found.
spec/support/migrations_helpers.rb
View file @
3a29646d
...
...
@@ -36,16 +36,30 @@ module MigrationsHelpers
end
def
schema_migrate_down!
ActiveRecord
::
Migrator
.
migrate
(
migrations_paths
,
migration_schema_version
)
disable_migrations_output
do
ActiveRecord
::
Migrator
.
migrate
(
migrations_paths
,
migration_schema_version
)
end
reset_column_in_migration_models
end
def
schema_migrate_up!
ActiveRecord
::
Migrator
.
migrate
(
migrations_paths
)
disable_migrations_output
do
ActiveRecord
::
Migrator
.
migrate
(
migrations_paths
)
end
reset_column_in_migration_models
end
def
disable_migrations_output
ActiveRecord
::
Migration
.
verbose
=
false
yield
ensure
ActiveRecord
::
Migration
.
verbose
=
true
end
def
migrate!
ActiveRecord
::
Migrator
.
up
(
migrations_paths
)
do
|
migration
|
migration
.
name
==
described_class
.
name
...
...
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