Skip to content

Commit

Permalink
Merge pull request #105 from lishengbao/oh6
Browse files Browse the repository at this point in the history
Fix table association bug
  • Loading branch information
lishengbao authored Jul 26, 2024
2 parents 8bc6b1c + c2f07c1 commit ee2d5e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/models/tpc_software_selection_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class TpcSoftwareSelectionReport < ApplicationRecord

belongs_to :tpc_software_sig
belongs_to :subject
belongs_to :user
has_many :tpc_software_report_metrics, as: :tpc_software_report, dependent: :destroy

CharacterSet = '0123456789abcdefghijklmnopqrstuvwxyz'
Expand Down
2 changes: 2 additions & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ class User < ApplicationRecord
has_many :lab_models, dependent: :destroy
has_many :subject_access_levels, dependent: :destroy
has_many :lab_model_invitations
has_many :tpc_software_selection_report
has_many :tpc_software_selections

validate :check_email_change_limit
validates :encrypted_password, presence: true
Expand Down

0 comments on commit ee2d5e3

Please sign in to comment.