Find rows with multiple duplicate fields with Active Record, Rails & Postgres
ids = TabLesson.select("MIN(id) as id").group(:lesson_id, :tab_id).collect(&:id)
records = TabLesson.where.not(id: ids)
records = TabLesson.where.not(id: ids)
Well, I’m a Senior Full Stack Ruby on Rails Developer having experience of over 10 years. I have technically rich hands-on developing applications in Ruby on Rails, ReactJS, React Native, Python, Jekyll and develop the APIs as well. I am an enthusiast with experience in JavaScript frameworks such as - angualr.js, react.js, backbone.js, ember.js, vue.js, and CSS3, Bootstrap, HTML5, HAML, Slim, Redis, Sidekiq, Social Media API’s, Payment Gateways Integration.
Comments
Post a Comment