Remove deprecated method usage of set_table_name

This would break the core build once rails4 branch is merged into master. set_table_name is deprecated in Rails 4.

Fixes #3270