Skip to content

Commit

Permalink
rubo
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad committed Jan 23, 2024
1 parent 1f5f159 commit 7eb120f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion db/data/20240123184213_fix_access_to_visibilities_value.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

class FixAccessToVisibilitiesValue < ActiveRecord::Migration[7.1]
def up
Permission.find_by(name: "AccessToVisibilities").role_permissions.where(value: "false").update_all(value: Recording::VISIBILITIES.values)
# rubocop:disable Rails/SkipsModelValidations
Permission.find_by(name: 'AccessToVisibilities').role_permissions.where(value: 'false').update_all(value: Recording::VISIBILITIES.values)
# rubocop:enable Rails/SkipsModelValidations
end

def down
Expand Down

0 comments on commit 7eb120f

Please sign in to comment.