Project

upknit

0.0
No commit activity in last 3 years
No release in over 3 years
This rails engine configures necessary settings to enable native UUID primary key in rails + postgresql environment.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

~> 1.0
~> 0.58.1
~> 1.27.0
>= 0

Runtime

~> 5.1
 Project Readme

CircleCI

Upknit

Adding this gem to a Rails application with PostgreSQL automatically enables UUID primary key.

Usage

Add this gem to your Rails application.

Installation

Add this line to your application's Gemfile:

gem 'upknit'

And then execute:

$ bundle

Internals

This gem does two things to enable UUID primary key.

  1. Enable PostgreSQL's extension for calculation of UUID(v4).
  2. Configure generators to use UUID
    • as primary key for newly generated tables.
    • as type of references.

License

The gem is available as open source under the terms of the MIT License.