Sha256: 39fcf8fee7c48301f2809f0c3ef271cd6db0eec82b5ff430cccf0d8258788ae6

Contents?: true

Size: 457 Bytes

Versions: 9

Compression:

Stored size: 457 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
scenic-1.6.0 lib/generators/scenic/view/templates/db/migrate/update_view.erb
scenic-1.5.5 lib/generators/scenic/view/templates/db/migrate/update_view.erb
scenic-jets-1.5.5 lib/generators/scenic/view/templates/db/migrate/update_view.erb
scenic-jets-1.5.4 lib/generators/scenic/view/templates/db/migrate/update_view.erb
scenic-1.5.4 lib/generators/scenic/view/templates/db/migrate/update_view.erb
scenic-1.5.3 lib/generators/scenic/view/templates/db/migrate/update_view.erb
scenic-1.5.2 lib/generators/scenic/view/templates/db/migrate/update_view.erb
scenic-1.5.1 lib/generators/scenic/view/templates/db/migrate/update_view.erb
scenic-1.5.0 lib/generators/scenic/view/templates/db/migrate/update_view.erb