Sha256: 9d4b926a4917dca1f6e1c79a135720888c1997a08184c2b128cff08b162b1376
Contents?: true
Size: 405 Bytes
Versions: 2
Compression:
Stored size: 405 Bytes
Contents
class <%= migration_class_name %> < ActiveRecord::Migration def change <%- if materialized? -%> update_view <%= formatted_plural_name %>, version: <%= version %>, revert_to_version: <%= previous_version %>, materialized: true <%- else -%> update_view <%= formatted_plural_name %>, version: <%= version %>, revert_to_version: <%= previous_version %> <%- end -%> end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scenic-1.3.0 | lib/generators/scenic/view/templates/db/migrate/update_view.erb |
scenic-1.2.0 | lib/generators/scenic/view/templates/db/migrate/update_view.erb |