Sha256: 6c2a6ee7c05f111aa6f05ab691bf6e076955930be1661d275751912458da6bb0

Contents?: true

Size: 542 Bytes

Versions: 1

Compression:

Stored size: 542 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.8.0 lib/generators/scenic/view/templates/db/migrate/update_view.erb