Skip to content

Commit

Permalink
fix rubocop
Browse files Browse the repository at this point in the history
- ignore cop, we are removing this code
  • Loading branch information
rwaffen committed Sep 20, 2023
1 parent e82093a commit 0479e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/migrate/20230419094052_add_role_to_users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def up
end

def down
add_column :users, :admin, :boolean, default: false
add_column :users, :admin, :boolean, default: false # rubocop:disable Rails/ThreeStateBooleanColumn
execute "UPDATE users SET admin = '1' WHERE role = 'admin'"
change_column :users, :admin, :boolean, default: false, null: false
remove_column :users, :role
Expand Down

0 comments on commit 0479e28

Please sign in to comment.