class <%= migration_class_name %> < <%= activerecord_migration_class %> def change <%- if materialized? -%> update_view <%= formatted_plural_name %>, version: <%= version %>, revert_to_version: <%= previous_version %>, materialized: <%= no_data? ? "{ no_data: true }" : true %> <%- else -%> update_view <%= formatted_plural_name %>, version: <%= version %>, revert_to_version: <%= previous_version %> <%- end -%> end end