0.0
A long-lived project that still receives updates
Uses parent and child table names to create FK with neat ids
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Gem Version Maintainability

FriendlyFk

Uses child and parent table names to give FK name by default. It doesn't use hash tail, so use it carefully, 'cause it may generate non-unique names.

Installation

Add this line to your application's Gemfile:

gem 'friendly_fk'

And then execute:

$ bundle

Usage

Just use conventional call of add_foreign_key method.