Skip to Main Content
amhill.net
  • About
  • Portfolio
    • Coding
    • Art

rails5

Modifying a has_many association to include nils
26 Oct 2017

Modifying a has_many association to include nils

by elecmahm | posted in: Tech | 0

I had this interesting use case come up. We have a multi-tenant app that has an Organization  model. An Organization has many BarcodeItem. Originally, the query was direct: We only wanted an instance of Organization  to return the barcode_items  that … Continued

rails5, ruby on rails

Other Topics

Tags

2012 election base64hackseries budgeting caffeine chemistry consumerism Corporations corruption credit customer service debt debt collection domaineering economics economy elections fermentation Hashing Ithaca kids Learning legal Linux Linux Adoption nature OccupyWallstreet organic chemistry personal finance protests rails3 rails4 recovery ruby on rails security sleuthing Social Media Time Warner Cable tutorials twitter Ubuntu Ubuntu9.04 Ubuntu14.04 VirtualBox wine wordpress

Social

Recent Posts

  • Epson EcoTank ET-3700 and Ubuntu 17.10 March 12, 2018
  • Modifying a has_many association to include nils October 26, 2017
  • SSH Tunneling June 23, 2017

Categories

  • Featured (2)
  • Games (3)
    • Game Design (1)
    • Video Games (2)
  • Personal (17)
    • Recipes (5)
  • Social Justice (22)
    • Political Science (5)
    • Socioeconomics (16)
  • Tech (31)
    • HOWTO (16)
  • Writing (17)
    • Creative Nonfiction (9)
    • Research (1)

RSS Dumb Things I’ve Made Recently

  • Untitled January 18, 2019
  • Sullivan requested “just ask daddy to make something creative... April 12, 2018
  • A friend of mine in Cali posted this image she received about... December 7, 2017
  • Save $500 on bread this year -- click here November 26, 2017

© 2019 amhill.net - WordPress Theme by Kadence WP