Sha256: eab0172423fb1759a8304ae89c8670bb03e213fa4b97f05de79b920f61778566

Contents?: true

Size: 299 Bytes

Versions: 4

Compression:

Stored size: 299 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
scrivito_sdk-0.30.0.rc1 lib/generators/scrivito/widget/templates/migration.erb
scrivito_sdk-0.18.1 lib/generators/cms/widget/templates/migration.erb
scrivito_sdk-0.18.0 lib/generators/cms/widget/templates/migration.erb
scrivito_sdk-0.17.0 lib/generators/cms/widget/templates/migration.erb