v3 fix relation of starred_repository to repostiory model
This commit is contained in:
parent
af3087446c
commit
d3b13e8d7c
|
@ -6,7 +6,7 @@ module Travis::API::V3
|
|||
has_many :builds, dependent: :delete_all, order: 'builds.id DESC'.freeze
|
||||
has_many :permissions, dependent: :delete_all
|
||||
has_many :users, through: :permissions
|
||||
has_many :starred_repositories, through: :users
|
||||
has_many :starred_repositories
|
||||
|
||||
belongs_to :owner, polymorphic: true
|
||||
belongs_to :last_build, class_name: 'Travis::API::V3::Models::Build'.freeze
|
||||
|
|
Loading…
Reference in New Issue
Block a user