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

17 lines
311 B
Ruby

# frozen_string_literal: true
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