Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scope :not_archived, where("=items.status != 'archived'").joins(:provider)
- ...
- scope I18n.t('scopes.all'), :not_archived
- Mysql2::Error: Column 'id' in field list is ambiguous
- SELECT id FROM `items` INNER JOIN `providers` ON `providers`.`id` = `items`.`provider_id` WHERE `items`.`status` != 'archived'
- except(:select)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement