No commit activity in last 3 years
No release in over 3 years
An AR abstract superclass that features a UUID as the default 'id' column, and a generator.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6.4
>= 0
>= 0

Runtime

 Project Readme

globally_unique_record¶ ↑

Globally Unique Record is meant to be used as a dropin replacement for the standard default ActiveRecord::Base class.

The principal difference is the default :id attribute is a String not an Integer. It is automatically generated using UUIDTools at 36 characters upon creation.

The idea is to provide the basis only for core data sets that will exist between multiple global applications. For example, a building in Singapore is always the same building in Singapore, and so should retain the same id regardless.

Upcoming features¶ ↑

  • Generator

  • Specs

Usage

class Foo < GloballyUniqueRecord end

>> @foo = Foo.create

> <Foo id:01234567890123456.…>¶ ↑

Copyright © 2011 Bryan Taylor. See LICENSE.txt for further details.