Skip to content

Commit

Permalink
SQLの間違いを修正(in句が必要なところがイコールになっていた)
Browse files Browse the repository at this point in the history
  • Loading branch information
PharaohKJ committed Oct 9, 2016
1 parent d582a0c commit 02071d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Project < ActiveRecord::Base

scope :match_mine, lambda { |skills|
targets = skills.map(&:id)
joins(:skills).where('stage_id != 13').where('projects_skills.skill_id = ?', targets).group(:id)
joins(:skills).where('stage_id != 13').where('projects_skills.skill_id in (?)', targets).group(:id)
}

scope :hot_rank, lambda { |before|
Expand Down

0 comments on commit 02071d4

Please sign in to comment.