Commit 3aee34c3 authored by Stan Hu's avatar Stan Hu

Improve puts messages in spec/support/database_cleaner.rb

parent 9fa206ce
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment