mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-25 08:09:38 +02:00
Add migration to make all current users admins (#770)
This commit is contained in:
parent
6212d57915
commit
94345ddc3a
2 changed files with 6 additions and 1 deletions
|
@ -0,0 +1,5 @@
|
|||
class AddAdminRoleToCurrentUsers < ActiveRecord::Migration[7.2]
|
||||
def up
|
||||
User.update_all(role: "admin")
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue