lib/generators/scrivito/migration/templates/migration.erb in scrivito_sdk-0.30.0.rc1 vs lib/generators/scrivito/migration/templates/migration.erb in scrivito_sdk-0.30.0

- old
+ new

@@ -1,6 +1,6 @@ -class <%= class_name %> < ::Scrivito::Migration +class <%= class_name %>Migration < ::Scrivito::Migration def up # This migration file allows to create and modify object class definitions or to change the CMS # content programatically. All Scrivito SDK classes and methods are available and arbitrary Ruby # code can be executed. # @@ -13,10 +13,10 @@ # latest unpublished migrations. # # To get you started, here is a list of the most common SDK methods to alter the CMS content. # # @example Create a new non-binary obj class named "Homepage" that has a "string" attribute named "locale". - # Scrivito::ObjClass.create(name: 'Homepage', is_binary: false, attributes: [ + # Scrivito::ObjClass.create(name: 'Homepage', attributes: [ # {name: 'locale', type: :string} # ]) # # @example Find the obj class named "Homepage". # Scrivito::ObjClass.find('Homepage')