Remove call to deprecated `set_table_name`

Because ActiveRecord 3 deprecates `set_table_name`, and ActiveRecord 4
removes it, I've switched to using `#table_name=` to prepare for the
update and remove the deprecation warnings.