contentful / contentful_model

A lightweight wrapper around the Contentful api gem, to make it behave more like ActiveRecord
MIT License
44 stars 42 forks source link

Fix exception on Migration.remove_content_type_field #133

Closed MattFenelon closed 5 years ago

MattFenelon commented 5 years ago

ContentfulModel::Migrations::ContentType.remove_field does not update the memoized @fields array on remove_field. Calling save on the instance after removing the field causes an exception to be raised.

dlitvakb commented 5 years ago

Thanks for the contribution!

Merging!