Project

ignorable

0.05
No commit activity in last 3 years
No release in over 3 years
Ignore problematic column names (like 'attributes' or 'class') in ActiveRecord models for legacy database schemas
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Donate to charity: water via Gittip

ignorable

Ignore columns in ActiveRecord

Installation

Add this to your Gemfile:

gem 'ignorable'

Usage

class Topic < ActiveRecord::Base
   ignore_columns :attributes, :class, :meta_column_used_by_another_app
end

Rails Versions

Tested on Rails 3.2, Rails 4.1.0.

This gem is not needed on Rails 5.0 because an ignored_columns feature has been merged in rails/rails#21720