2024-05-26 10:45:10 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
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
|