2021-06-02 02:09:48 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-09-09 05:11:16 -04:00
|
|
|
class RenameInstanceStatisticsMeasurements < Gitlab::Database::Migration[1.0]
|
|
|
|
enable_lock_retries!
|
2021-06-02 02:09:48 -04:00
|
|
|
|
|
|
|
def up
|
|
|
|
rename_table_safely(:analytics_instance_statistics_measurements, :analytics_usage_trends_measurements)
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
undo_rename_table_safely(:analytics_instance_statistics_measurements, :analytics_usage_trends_measurements)
|
|
|
|
end
|
|
|
|
end
|