Skip to content

Commit

Permalink
Added role to users
Browse files Browse the repository at this point in the history
  • Loading branch information
Otoniel Reyes Galay committed Aug 18, 2022
1 parent 7a529e9 commit 1e57e6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions db/migrate/20220818010946_add_role_to_users.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddRoleToUsers < ActiveRecord::Migration[7.0]
def change
add_column :users, :role, :string, null: false, default: "member"
end
end
3 changes: 2 additions & 1 deletion db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1e57e6c

Please sign in to comment.