Removed set_table_name and changed it to self.table_name assignment to be compatible with Rails 4