1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-21 06:09:38 +02:00
Maybe/db/migrate/20240425000110_add_role_to_users.rb
Zach Gollwitzer 5a5f13b46b
Add new settings profile and preferences pages (#672)
* Add new settings profile and preferences pages

* Fix lint errors
2024-04-25 07:54:56 -04:00

6 lines
193 B
Ruby

class AddRoleToUsers < ActiveRecord::Migration[7.2]
def change
create_enum :user_role, %w[admin member]
add_column :users, :role, :user_role, default: "member", null: false
end
end