0.0
Low commit activity in last 3 years
No release in over a year
A gem that will print a message if a developer is trying to use a column that is from a legacy system but has to stay there.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.2.33
~> 13.0.1
~> 3.2
~> 1.4.2

Runtime

 Project Readme

Build Status License

LegacyColumn

A gem that will print a message if a developer is trying to use a column that is from a legacy system but has to stay there.

Installation

gem 'legacy_column'

Usage

Just list the column names:

legacy_column :old_email, :old_phone_number

A custom message can be added:

legacy_column :old_email, :old_phone_number, message: 'Do not touch this!!!'

It will output something like this in rails logs:

Use of legacy column detected.
  User => old_email
  Do not touch this!!!

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT