This blog is part of our Rails 5 series.
Somtimes we need to ignore a database column. However Rails 4.x doesn’t have any officially defined method which ignores a database column from Active Record. We can apply our patch on model to ignore certain columns.
Rails 5 added ignored_columns
has added ignored_columns
Here is revised code after using