Run annotate_models
This commit is contained in:
parent
55e853d31d
commit
d7e24f6521
124 changed files with 2192 additions and 19 deletions
|
|
@ -1,5 +1,22 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: roles
|
||||
#
|
||||
# id :bigint not null, primary key
|
||||
# description :string
|
||||
# name :string
|
||||
# resource_type :string
|
||||
# created_at :datetime
|
||||
# updated_at :datetime
|
||||
# resource_id :integer
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_roles_on_name (name)
|
||||
# index_roles_on_name_and_resource_type_and_resource_id (name,resource_type,resource_id)
|
||||
#
|
||||
class Role < ApplicationRecord
|
||||
belongs_to :resource, polymorphic: true
|
||||
has_many :users_roles
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue