Remove the connect feature flag (#17061)

There's an existing data update to introduce the connect feature flag,
and it's been disabled. However, since all the code relying on this is
now gone, it makes sense to remove the flag.
This commit is contained in:
Daniel Uber 2022-03-30 14:51:45 -05:00 committed by GitHub
parent b14e5522cd
commit f680bc8d53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,7 @@
module DataUpdateScripts
class RemoveConnectFeatureFlag
def run
FeatureFlag.remove(:connect)
end
end
end

View file

@ -0,0 +1,14 @@
require "rails_helper"
require Rails.root.join(
"lib/data_update_scripts/20220330191441_remove_connect_feature_flag.rb",
)
describe DataUpdateScripts::RemoveConnectFeatureFlag do
it "removes the connect feature flag" do
FeatureFlag.add(:connect)
described_class.new.run
expect(FeatureFlag.exist?(:connect)).to be false
end
end