set_table_name has been deprecated in favour of self.table_name

set_table_name has been deprecated in favor of self.table_table= in https://github.com/rails/rails/commit/0b72a04.