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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
3aee34c3
Commit
3aee34c3
authored
Dec 02, 2019
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve puts messages in spec/support/database_cleaner.rb
parent
9fa206ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/support/database_cleaner.rb
spec/support/database_cleaner.rb
+3
-3
No files found.
spec/support/database_cleaner.rb
View file @
3aee34c3
...
@@ -34,9 +34,9 @@ RSpec.configure do |config|
...
@@ -34,9 +34,9 @@ RSpec.configure do |config|
if
tables_with_more_than_allowed_columns
.
any?
if
tables_with_more_than_allowed_columns
.
any?
tables_with_more_than_allowed_columns
.
each
do
|
result
|
tables_with_more_than_allowed_columns
.
each
do
|
result
|
puts
"The
#{
result
[
'table'
]
}
has
#{
result
[
'column_count'
]
}
columns."
puts
"The
#{
result
[
'table'
]
}
table
has
#{
result
[
'column_count'
]
}
columns."
end
end
puts
"Recreating the database
to reset the 'application_settings' columns count
"
puts
"Recreating the database"
start
=
Gitlab
::
Metrics
::
System
.
monotonic_time
start
=
Gitlab
::
Metrics
::
System
.
monotonic_time
ActiveRecord
::
Tasks
::
DatabaseTasks
.
drop_current
ActiveRecord
::
Tasks
::
DatabaseTasks
.
drop_current
...
@@ -44,7 +44,7 @@ RSpec.configure do |config|
...
@@ -44,7 +44,7 @@ RSpec.configure do |config|
ActiveRecord
::
Tasks
::
DatabaseTasks
.
load_schema_current
ActiveRecord
::
Tasks
::
DatabaseTasks
.
load_schema_current
ActiveRecord
::
Tasks
::
DatabaseTasks
.
migrate
ActiveRecord
::
Tasks
::
DatabaseTasks
.
migrate
puts
"
Schema
re-creation done in
#{
Gitlab
::
Metrics
::
System
.
monotonic_time
-
start
}
"
puts
"
Database
re-creation done in
#{
Gitlab
::
Metrics
::
System
.
monotonic_time
-
start
}
"
end
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