debian-mirror-gitlab/db/migrate/20191213184609_backfill_operations_feature_flags_active.rb
2020-03-09 13:42:32 +05:30

20 lines
427 B
Ruby

# frozen_string_literal: true
class BackfillOperationsFeatureFlagsActive < ActiveRecord::Migration[5.2]
DOWNTIME = false
disable_ddl_transaction!
class OperationsFeatureFlag < ActiveRecord::Base
self.table_name = 'operations_feature_flags'
self.inheritance_column = :_type_disabled
end
def up
OperationsFeatureFlag.where(active: false).update_all(active: true)
end
def down
# no-op
end
end