class ApplicationRecord < ActiveRecord::Base self.abstract_class = true def to_i id end end