Skip to content

Commit

Permalink
Removed MiqRolesFeature.none? check
Browse files Browse the repository at this point in the history
  • Loading branch information
h-kataria committed Jun 1, 2020
1 parent b7108ad commit 3baef88
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ def down
say_with_time 'Adjusting chargeback reports features to explorer views' do
admin_feature = MiqProductFeature.find_or_create_by!(:identifier => 'chargeback_reports')

return if MiqRolesFeature.none?

MiqRolesFeature.where(:miq_product_feature_id => admin_feature.id).each do |feature|
old_feature_ids.each do |id|
MiqRolesFeature.create!(:miq_product_feature_id => id, :miq_user_role_id => feature.miq_user_role_id)
Expand Down

0 comments on commit 3baef88

Please sign in to comment.