tabletop-companion/db/migrate/20240526085315_create_user_...

15 lines
280 B
Ruby
Raw Normal View History

2024-05-26 09:06:04 +00:00
class CreateUserRoles < ActiveRecord::Migration[7.1]
def change
create_table :site_roles do |t|
t.string :name, null: false
t.timestamps
end
create_table :site_roles_users do |t|
t.belongs_to :user
t.belongs_to :site_role
end
end
end