v3 fix relation of starred_repository to repostiory model

This commit is contained in:
carlad 2015-11-24 18:15:17 +01:00
parent af3087446c
commit d3b13e8d7c

View File

@ -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