no need to `begin` here. You can use the default `ensure` cause of the method:

```ruby
def with_singular_table_name
  old_state = ActiveRecord::Base.pluralize_table_names
  ActiveRecord::Base.pluralize_table_names = false
  yield
ensure
  ActiveRecord::Base.pluralize_table_names = old_state
end
```