Skip to content

Commit

Permalink
Merge pull request #1669 from bgeuken/fix_errbit_error
Browse files Browse the repository at this point in the history
[api][webui] Fix ActiveRecord::HasManyThroughCantAssociateThroughHasO…
  • Loading branch information
adrianschroeter committed Apr 4, 2016
2 parents 14a083e + 9760665 commit c3a62e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/models/project.rb
Expand Up @@ -52,7 +52,7 @@ def autocomplete(search)
has_many :attribs, :dependent => :destroy

has_many :repositories, :dependent => :destroy, foreign_key: :db_project_id
has_many :repository_architectures, -> { order("position") }, :dependent => :destroy, through: :repositories
has_many :repository_architectures, -> { order("position") }, through: :repositories
has_many :architectures, -> { order("position").distinct }, :through => :repository_architectures

has_many :messages, :as => :db_object, :dependent => :delete_all
Expand Down

0 comments on commit c3a62e9

Please sign in to comment.