Sha256: fd40dd5e4a655756c154febc7440fc1b520fe772482d75e804ef2c409d283527
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 Bytes
Contents
class <%= migration_class_name %> < <%= activerecord_migration_class %> def change <% method_name = replace_view? ? 'replace_view' : 'update_view' %> <%- if materialized? -%> <%= method_name %> <%= formatted_plural_name %>, version: <%= version %>, revert_to_version: <%= previous_version %>, materialized: <%= no_data? ? "{ no_data: true }" : true %> <%- else -%> <%= method_name %> <%= formatted_plural_name %>, version: <%= version %>, revert_to_version: <%= previous_version %> <%- end -%> end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scenic-1.7.0 | lib/generators/scenic/view/templates/db/migrate/update_view.erb |