projects
/
opencantine5
/
opencantine5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
user role
[opencantine5/opencantine5.git]
/
db
/
migrate
/
20191122113455_add_role_to_user.rb
diff --git a/db/migrate/20191122113455_add_role_to_user.rb
b/db/migrate/20191122113455_add_role_to_user.rb
new file mode 100644
(file)
index 0000000..
3ef695f
--- /dev/null
+++ b/
db/migrate/20191122113455_add_role_to_user.rb
@@ -0,0
+1,6
@@
+class AddRoleToUser < ActiveRecord::Migration[5.2]
+ def change
+ add_column :users, :role, :integer
+ add_index :users, :role
+ end
+end