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:
parent
b14e5522cd
commit
f680bc8d53
2 changed files with 21 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
module DataUpdateScripts
|
||||
class RemoveConnectFeatureFlag
|
||||
def run
|
||||
FeatureFlag.remove(:connect)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue