Sha256: 1b3b47f6b3e3176491c1837c968eac1be8d75803238b0971fcb2d34c22ca7986

Contents?: true

Size: 328 Bytes

Versions: 3

Compression:

Stored size: 328 Bytes

Contents

class Create<%= class_name %> < ::Scrivito::Migration
  def up
    create_obj_class(
      name: '<%= class_name %>',
      type: 'publication',
      title: '<%= class_name.underscore.humanize %>',
      # attributes: [
      #   {
      #     name: 'example',
      #     type: :string,
      #   },
      # ]
    )
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scrivito_sdk-0.16.0 lib/generators/cms/widget/templates/migration.erb
scrivito_sdk-0.15.0 lib/generators/cms/widget/templates/migration.erb
scrivito_sdk-0.14.0 lib/generators/cms/widget/templates/migration.erb