Project

with_uuid

0.0
No commit activity in last 3 years
No release in over 3 years
Provides facilities to utilize UUIDs with ActiveRecord, including model and migration extensions.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0

Runtime

 Project Readme

HasUuid

Provides facilities to utilize UUIDs with ActiveRecord, including model and migration extensions.

Installation

Add this line to your application's Gemfile:

gem 'has_uuid'

And then execute:

$ bundle

Or install it yourself as:

$ gem install has_uuid

Usage

In a migration:

create_table "comments", :id => false, :force => true do |t|
  t.uuid     "id",      :primary_key => true 
  t.uuid     "post_id",                       :null => false
end

In a model:

class Posts < ActiveRecord::Base
  include WithUuid::Model

  # ...
end