debian-mirror-gitlab/db/migrate/20210531053916_rename_instance_statistics_measurements.rb
2021-09-04 02:52:04 +05:30

13 lines
407 B
Ruby

# frozen_string_literal: true
class RenameInstanceStatisticsMeasurements < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
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