1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-18 20:59:39 +02:00

Add migration to make all current users admins (#770)

This commit is contained in:
Jakub Kottnauer 2024-05-20 17:33:19 +02:00 committed by GitHub
parent 6212d57915
commit 94345ddc3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddAdminRoleToCurrentUsers < ActiveRecord::Migration[7.2]
def up
User.update_all(role: "admin")
end
end

2
db/schema.rb generated
View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.2].define(version: 2024_05_02_205006) do
ActiveRecord::Schema[7.2].define(version: 2024_05_20_074309) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"