copypasta class structure with ActiveRecord::Base inheritance to the model files