Beautilful global models

2.1.5 :004 > person = Individual.find(1)
=> #<Individual id: 1, name: “Mark”, created_at: “2015-05-09 03:51:50”, updated_at: “2015-05-09 03:51:50”>
2.1.5 :005 > company = Company.find(1)
=> #<Company id: 1, name: “Facebook”, created_at: “2015-05-09 03:51:49”, updated_at: “2015-05-09 03:51:49”>
2.1.5 :006 > person.id == company.id
=> true

In the above example the id of the two different model instance’s are equal.

How about we want our model instances to be uniquely identified?

We can do it with global_id gem.