Sha256: 9a78f7a5622931ad0018d158c5b12386ace583b9e24fdf0e1c4947ec8efa706b

Contents?: true

Size: 297 Bytes

Versions: 4

Compression:

Stored size: 297 Bytes

Contents

class Create<%= class_name %>Migration < Scrivito::Migration
  def up
    Scrivito::ObjClass.create(name: '<%= class_name %>', attributes: [
      {name: 'title',       type: :string},
      {name: 'body',        type: :widget},
      {name: 'child_order', type: :referencelist},
    ])
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
scrivito_sdk-0.50.1 lib/generators/scrivito/page/templates/migration.erb
scrivito_sdk-0.50.0 lib/generators/scrivito/page/templates/migration.erb
scrivito_sdk-0.50.0.rc2 lib/generators/scrivito/page/templates/migration.erb
scrivito_sdk-0.50.0.rc1 lib/generators/scrivito/page/templates/migration.erb