add roles to admin panel

This commit is contained in:
João Geonizeli
2022-07-21 10:45:48 -03:00
parent 734b6e911a
commit 705a465292
10 changed files with 209 additions and 100 deletions

View File

@@ -0,0 +1,11 @@
class CreateRoles < ActiveRecord::Migration[7.0]
def change
create_table :roles do |t|
t.string :name
t.timestamps
end
add_index(:roles, :name, unique: true)
end
end