Skip to content

[Rails5] Update `type_cast_*_database` methods

What does this MR do?

In Rails 5.0 two type cast methods have been renamed:

  1. The type_cast_for_database method has been renamed to serialize.
  2. The type_cast_from_database method has been renamed to deserialize.

This MR adds support of the renamed methods for Rails 5.

Why was this MR needed?

Migration to Rails 5.0.

Screenshots (if relevant)

No.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

#14286 (closed) and !12841 (closed)

Edited by blackst0ne

Merge request reports

Loading