Skip to content

Commit

Permalink
Merge pull request #1152 from griffithlab/add-missing-key
Browse files Browse the repository at this point in the history
add explicit primary key to source browse model
  • Loading branch information
acoffman authored Dec 2, 2024
2 parents 5a07ca6 + 6a9e7a7 commit fe7a65c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
class MaterializedViews::SourceBrowseTableRow < MaterializedViews::MaterializedView
self.primary_key = :id
has_and_belongs_to_many :clinical_trials, join_table: :clinical_trials_sources, foreign_key: :source_id

enum source_type: ['PubMed', 'ASCO', 'ASH']
Expand Down

0 comments on commit fe7a65c

Please sign in to comment.